How to use the @storybook/addon-centered/react function in @storybook/addon-centered

To help you get started, we’ve selected a few @storybook/addon-centered examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RocketChat / Rocket.Chat.Livechat / src / components / Menu / stories.js View on Github external
const centeredWithPopoverContainer = (storyFn, ...args) => (
	<div style="{{">
		
			{centered(storyFn, ...args)}
		
	</div>
);
github RocketChat / Rocket.Chat.Livechat / src / components / Popover / stories.js View on Github external
const centeredWithPopoverContainer = (storyFn, ...args) =&gt; (
	<div style="{{">
		
			{centered(storyFn, ...args)}
		
	</div>
);

@storybook/addon-centered

Storybook decorator to center components

MIT
Latest version published 4 years ago

Package Health Score

78 / 100
Full package analysis

Popular @storybook/addon-centered functions