-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Progress): Export Progress from chakra-ui
- Loading branch information
Showing
4 changed files
with
51 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
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 |
---|---|---|
|
@@ -61,6 +61,7 @@ export { | |
MenuButton, | ||
MenuList, | ||
MenuItem, | ||
Progress, | ||
Select, | ||
SimpleGrid, | ||
Spacer, | ||
|
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,40 @@ | ||
import React from 'react'; | ||
import { Meta, StoryFn } from '@storybook/react'; | ||
|
||
import { Progress } from '../..'; | ||
import { COLOR_SCHEMES } from '../../constants/colorSchemes'; | ||
|
||
export default { | ||
title: 'Components/Progress', | ||
component: Progress, | ||
argTypes: { | ||
size: { options: ['xs', 'sm', 'md', 'lg'], control: { type: 'radio' } }, | ||
colorScheme: { | ||
options: COLOR_SCHEMES, | ||
control: { type: 'radio' }, | ||
}, | ||
hasStripe: { control: { type: 'boolean' } }, | ||
}, | ||
args: { | ||
width: 'sm', | ||
value: 60, | ||
}, | ||
} as Meta<typeof Progress>; | ||
|
||
const Template: StoryFn<typeof Progress> = (args) => <Progress {...args} />; | ||
|
||
export const Primary = Template.bind({}); | ||
Primary.args = { | ||
colorScheme: 'primary', | ||
}; | ||
|
||
export const ColorScheme = Template.bind({}); | ||
ColorScheme.args = { | ||
colorScheme: 'red', | ||
}; | ||
|
||
export const WithStripe = Template.bind({}); | ||
WithStripe.args = { | ||
colorScheme: 'primary', | ||
hasStripe: true, | ||
}; |
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