add comments in storybook
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user