From 0417ff56f3660ce42ef1da75202c6758cd0cebd8 Mon Sep 17 00:00:00 2001 From: Rafael Youakeem Date: Wed, 18 Sep 2024 14:57:49 +0200 Subject: [PATCH] Add size controls to Card stories --- .../ui/src/components/Card/Card.stories.tsx | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/packages/ui/src/components/Card/Card.stories.tsx b/packages/ui/src/components/Card/Card.stories.tsx index 02df90281d..0aaacac836 100644 --- a/packages/ui/src/components/Card/Card.stories.tsx +++ b/packages/ui/src/components/Card/Card.stories.tsx @@ -19,6 +19,10 @@ const meta: Meta = { options: ['primary', 'secondary'], control: { type: 'select' }, }, + size: { + options: ['md', 'lg'], + control: { type: 'radio' }, + }, }, parameters: { design: { @@ -35,7 +39,7 @@ type Story = StoryObj export const Default: Story = { render: (args: Controls) => (
- + @@ -57,13 +61,14 @@ export const Default: Story = { ), args: { variant: 'primary', + size: 'lg', }, } export const WithBadge: Story = { render: (args: Controls) => (
- + 20% @@ -83,13 +88,14 @@ export const WithBadge: Story = { ), args: { variant: 'primary', + size: 'lg', }, } export const WithoutAside: Story = { render: (args: Controls) => (
- + @@ -106,13 +112,14 @@ export const WithoutAside: Story = { ), args: { variant: 'primary', + size: 'lg', }, } export const WithoutPillow: Story = { render: (args: Controls) => (
- + Homeowner Insurance @@ -126,13 +133,14 @@ export const WithoutPillow: Story = { ), args: { variant: 'primary', + size: 'lg', }, } export const Secondary: Story = { render: (args: Controls) => (
- + @@ -151,5 +159,6 @@ export const Secondary: Story = { ), args: { variant: 'secondary', + size: 'md', }, }