import React from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { Stack } from './Stack'; const meta: Meta = { title: 'UI kit/Layout/Stack', component: Stack, tags: ['autodocs'], }; function Item({ lines, ...rest }: { lines: number }) { return (
{Array.from({ length: lines }).map((_, index) => (
Line {index + 1}
))}
); } export default meta; type Story = StoryObj; export const Default: Story = { args: {}, render: props => ( ), }; export const Vertical: Story = { args: { orientation: 'vertical', }, render: props => ( ), }; export const FullScreenCentered: Story = { args: { align: 'center', grow: true, justify: 'center', orientation: 'vertical', }, render: props => ( ), decorators: [ Story => ( <> ), ], };