diff --git a/src/pages/components/DisplayGapsPercentage.stories.tsx b/src/pages/components/DisplayGapsPercentage.stories.tsx new file mode 100644 index 00000000..03331ac8 --- /dev/null +++ b/src/pages/components/DisplayGapsPercentage.stories.tsx @@ -0,0 +1,59 @@ +import { Meta, StoryObj } from '@storybook/react' +import DisplayGapsPercentage from './DisplayGapsPercentage' + +const meta: Meta = { + title: 'Components/DisplayGapsPercentage', + component: DisplayGapsPercentage, + parameters: { + layout: 'centered', + }, + tags: ['autodocs'], +} + +export default meta +type Story = StoryObj + +export const GreatGapPercentage: Story = { + args: { + gapsPercentage: 5, + decentPercentage: 10, + terriblePercentage: 15 + }, + parameters: { + docs: { + description: { + story: 'When gapsPercentage is lower than decentPercentage' + } + } + } +} + +export const DecentGapPercentage: Story = { + args: { + gapsPercentage: 12, + decentPercentage: 10, + terriblePercentage: 15 + }, + parameters: { + docs: { + description: { + story: 'When gapsPercentage is between decentPercentage and terriblePercentage' + } + } + } +} + +export const TerribleGapPercentage: Story = { + args: { + gapsPercentage: 17, + decentPercentage: 10, + terriblePercentage: 15 + }, + parameters: { + docs: { + description: { + story: 'When gapsPercentage is higher than terriblePercentage' + } + } + } +}