import CenterV from '.'; import CodeInline from '@techytools/ui/components/CodeInline'; import CanvasContainer from '@techytools/ui/.storybook/components/CanvasContainer'; import useShowStorybookCode from '@techytools/ui/hooks/useShowStorybookCode'; const Story = (props) => { useShowStorybookCode(); return (

Any children you pass to this component will be centered vertically. They can contain other components and even complex layouts.

This{' '} <CenterChildrenY>{' '} component must have a height greater than the children's height, or it won't do anything.

); }; export default Story; export const code = `import CenterV from '@techytools/ui/components/CenterV';

Any children you pass to this component will be centered vertically. They can contain other components and even complex layouts.

One requirement: you must set a minimum height on this <CenterChildrenY> component that's greater than the children's height. Otherwise it won't do anything.

`;