31 lines
588 B
TypeScript
31 lines
588 B
TypeScript
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 = {};
|