-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add DisplayGapsPercentage to storybook
- Loading branch information
1 parent
85808d6
commit 2a72b6b
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
} | ||
} | ||
} | ||
} |