add comments in storybook

This commit is contained in:
e560248
2025-04-08 15:54:16 +02:00
parent e6f57d3cbc
commit 49b67f7654
2 changed files with 4 additions and 1 deletions

View File

@@ -4,7 +4,9 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
variant: 'primary' | 'secondary' variant: 'primary' | 'secondary'
size: 'sm' | 'md' | 'lg' size: 'sm' | 'md' | 'lg'
} }
/**
* Button component
*/
export const Button = ({ export const Button = ({
children, children,
variant, variant,

View File

@@ -18,6 +18,7 @@ export default meta
type Story = StoryObj<typeof Button> type Story = StoryObj<typeof Button>
/** This is the primary Button */
export const Primary: Story = { export const Primary: Story = {
args: { args: {
children: 'Primary Button', children: 'Primary Button',