Storybook: Decorate a single story
24 August 2022 (Updated 15 March 2024)
import type { Meta, StoryObj } from '@storybook/react'
import { Button, ButtonProps } from './Button'
const meta = {
component: Button,
} satisfies Meta<typeof Button>
export default meta;
type Story = StoryObj<typeof meta>
export const Primary: Story = {
args: {
primary: true,
label: 'Button',
},
}
Tagged:
Storybook
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment