Skip to content

Commit

Permalink
docs: add DisplayGapsPercentage to storybook (#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
griseduardo authored Oct 23, 2024
1 parent 85808d6 commit cf4e211
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 cf4e211

Please sign in to comment.