Skip to content

Commit

Permalink
chore(card): add argTypes for ratio and variant in Card stories
Browse files Browse the repository at this point in the history
  • Loading branch information
froggy1014 committed Jan 13, 2025
1 parent 0b834f0 commit ec55c39
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/card/src/Card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ const meta = {
parameters: {
layout: 'centered',
},
argTypes: {
ratio: {
control: 'select',
options: ['rectangle', 'square', 'wide', 'portrait', 'auto'],
},
variant: {
control: 'select',
options: ['filled', 'outline'],
},
},
} satisfies Meta<typeof Card>;
export default meta;

Expand All @@ -15,7 +25,6 @@ type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
children: <span style={{ fontSize: '20px' }}>Card</span>,
ratio: 'portrait',
variant: 'filled',
},
};

0 comments on commit ec55c39

Please sign in to comment.