import React from 'react' import { type Meta, type StoryFn, type StoryObj } from '@storybook/react' import { range } from '~/src/utils/number' import { Box } from '~/src/components/Box' import { Text } from '~/src/components/Text' import { Stack } from './Stack' const meta = { component: Stack, } satisfies Meta type Story = StoryObj function DecorativeBox({ children }: React.PropsWithChildren<{}>) { return ( {children} ) } const Template: StoryFn = (args) => ( {range(4).map((i) => ( {i + 1} ))} ) export const Primary: Story = { render: Template, args: { direction: 'horizontal', justify: 'start', align: 'start', reverse: false, wrap: true, width: 300, height: 300, spacing: 6, }, } export default meta