diff --git a/services/web/frontend/stories/shared/buttons.stories.tsx b/services/web/frontend/stories/shared/buttons.stories.tsx new file mode 100644 index 0000000000..c536a50f05 --- /dev/null +++ b/services/web/frontend/stories/shared/buttons.stories.tsx @@ -0,0 +1,44 @@ +import { Meta, StoryObj } from '@storybook/react' +import OLButton from '@/shared/components/ol/ol-button' +import { ButtonProps } from '@/shared/components/types/button-props' + +export default { + title: 'Shared / Components / Button', + component: OLButton, +} satisfies Meta + +type Story = StoryObj + +const variants: ButtonProps['variant'][] = [ + 'primary', + 'secondary', + 'ghost', + 'danger', + 'danger-ghost', + 'premium', + 'premium-secondary', + 'link', +] + +export const Variants: Story = { + render() { + return ( +
+ {variants.map(variant => ( +
+ Button + + Button + + + Button + + + Button + +
+ ))} +
+ ) + }, +}