feat: add basic webui
This commit is contained in:
30
apps/storybook/stories/label.stories.tsx
Normal file
30
apps/storybook/stories/label.stories.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react';
|
||||
|
||||
import { Label } from '@konobangu/design-system/components/ui/label';
|
||||
|
||||
/**
|
||||
* Renders an accessible label associated with controls.
|
||||
*/
|
||||
const meta = {
|
||||
title: 'ui/Label',
|
||||
component: Label,
|
||||
tags: ['autodocs'],
|
||||
argTypes: {
|
||||
children: {
|
||||
control: { type: 'text' },
|
||||
},
|
||||
},
|
||||
args: {
|
||||
children: 'Your email address',
|
||||
htmlFor: 'email',
|
||||
},
|
||||
} satisfies Meta<typeof Label>;
|
||||
|
||||
export default meta;
|
||||
|
||||
type Story = StoryObj<typeof Label>;
|
||||
|
||||
/**
|
||||
* The default form of the label.
|
||||
*/
|
||||
export const Default: Story = {};
|
||||
Reference in New Issue
Block a user