Skip to content

Commit

Permalink
docs: add DisplayGapsPercentage to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
griseduardo committed Oct 22, 2024
1 parent 85808d6 commit 8c4ae34
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions src/pages/components/DisplayGapsPercentage.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import { Meta, StoryObj } from '@storybook/react'
import DisplayGapsPercentage from './DisplayGapsPercentage'

const meta: Meta<typeof DisplayGapsPercentage> = {
title: 'Components/DisplayGapsPercentage',
component: DisplayGapsPercentage,
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
}

export default meta
type Story = StoryObj<typeof DisplayGapsPercentage>

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',
},
},
},
}

0 comments on commit 8c4ae34

Please sign in to comment.