diff --git a/apps/store/src/components/ProductCard/DetailsList/DetailsList.stories.tsx b/apps/store/src/components/ProductCard/DetailsList/DetailsList.stories.tsx new file mode 100644 index 0000000000..c48593258d --- /dev/null +++ b/apps/store/src/components/ProductCard/DetailsList/DetailsList.stories.tsx @@ -0,0 +1,86 @@ +import type { Meta, StoryObj } from '@storybook/react' +import { type ComponentProps } from 'react' +import { Badge, Text, yStack } from 'ui' +import { CurrencyCode } from '@/services/graphql/graphql' +import { Price } from '../../Price' +import { DetailsList } from './DetailsList' + +type Controls = ComponentProps + +const meta: Meta = { + title: 'Components / Product Card / DetailsList', + component: DetailsList.Root, + parameters: { + design: { + allowFullscreen: true, + type: 'figma', + url: 'https://www.figma.com/file/5kmmDdh6StpXzbEfr7WevV/Hedvig-UI-Kit?type=design&node-id=16269-14623&t=KfZGhlcQELqgimtF-1', + }, + }, +} +export default meta + +type Story = StoryObj + +export const Default: Story = { + render: () => ( +
+ + + + Homeowner insurance{' '} + + Max + + + 379 kr/mo + + + + Extended travel 60 days + 79 kr/mo + + +
+ ), +} + +export const Large: Story = { + render: () => ( +
+ Details + + + Home type + Homeowner + + + + Address + Bellmansgatan 19A + + + + Zip code + 118 47 + + +
+ ), +} + +export const TotalPrice: Story = { + render: () => ( +
+ + + Total + + + -20% for 3 months, then 379 kr/mo + + + +
+ ), +}