diff --git a/packages/ui/src/stories/label.stories.tsx b/packages/ui/src/stories/label.stories.tsx new file mode 100644 index 0000000..67696a3 --- /dev/null +++ b/packages/ui/src/stories/label.stories.tsx @@ -0,0 +1,37 @@ +import { fn } from '@storybook/test'; + +import { Label } from '../label'; +import { Checkbox } from '../checkbox'; +import { Meta, StoryObj } from '@storybook/react'; +function LabelDemo() { + return ( +
+
+ + +
+
+ ); +} + +const meta = { + title: 'CODERUM/Label', + component: LabelDemo, + parameters: { + // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout + layout: 'centered', + }, + // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs + tags: ['autodocs'], + + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + args: { onClick: fn() }, +} satisfies Meta; +export default meta; +type Story = StoryObj; + +export const LabelExample: Story = { + args: { + htmlFor: 'terms', + }, +};