-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write mdx documentation for ProgressBar
component
#1035
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1284517
refactor(progress-bar): change to named export
Dogdriip 2fcd003
docs(progress-bar.mdx): write default template of mdx docs
Dogdriip 21055fb
docs(progress-bar.mdx): add docs, story about size variants
Dogdriip 9e8a82a
docs(progress-bar.mdx): add docs, story about color variants
Dogdriip 716a98c
docs(progress-bar.mdx): add docs, story about usage (width, value)
Dogdriip 5707916
docs(progress-bar.mdx): add short overview
Dogdriip d99ec94
docs(progress-bar.stories): add random values playground in overview …
Dogdriip 623b55b
fix(progress-bar.mdx): add API section via ArgsTable
Dogdriip 26e5541
fix(progress-bar.stories): remove initial random value setting
Dogdriip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
packages/bezier-react/src/components/ProgressBar/ProgressBar.mdx
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,64 @@ | ||
import { | ||
ArgsTable, | ||
Canvas, | ||
Story, | ||
} from '@storybook/addon-docs' | ||
import { ProgressBar } from 'Components/ProgressBar' | ||
|
||
# ProgressBar | ||
|
||
## Overview | ||
|
||
진행도를 나타낼 때 사용합니다. | ||
|
||
<Canvas> | ||
<Story id="components-progressbar--overview" /> | ||
</Canvas> | ||
|
||
## Usage | ||
|
||
### Width | ||
|
||
`width` prop을 통해 ProgressBar의 너비를 지정할 수 있습니다. 기본값은 36px입니다. | ||
|
||
<Canvas> | ||
<Story id="components-progressbar--usage-width" /> | ||
</Canvas> | ||
|
||
### Value | ||
|
||
`value` prop을 통해 ProgressBar에 진행도를 표시할 수 있습니다. 기본값은 0입니다. | ||
|
||
진행도를 나타내는 `value`는 0보다 크거나 같고 1보다 작거나 같은 수입니다. 0보다 작은 값은 0으로, 1보다 큰 값은 1로 처리합니다. | ||
|
||
<Canvas> | ||
<Story id="components-progressbar--usage-value" /> | ||
</Canvas> | ||
|
||
## Variants | ||
|
||
### Size | ||
|
||
S, M 2개의 size가 있으며, 기본값은 M입니다. | ||
|
||
`size` prop을 통해 ProgressBar의 높이를 선택할 수 있으며, `ProgressBarSize` enum을 사용할 수 있습니다. | ||
|
||
<Story id="components-progressbar--size-variant" /> | ||
|
||
### Color | ||
|
||
Green, Monochrome 2개의 color가 있으며, 기본값은 Green입니다. | ||
|
||
`variant` prop을 통해 ProgressBar의 active 부분 색상을 선택할 수 있으며, `ProgressBarVariant` enum을 사용할 수 있습니다. | ||
|
||
<Story id="components-progressbar--variant" /> | ||
|
||
## API | ||
|
||
### ProgressBar | ||
|
||
<ArgsTable of={ProgressBar} /> | ||
|
||
## Version | ||
|
||
- Available since v1.0.0-next-v1.156 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😢 채워주실 내용이 있다면 브랜치로 직접 푸시해 주시거나 코멘트 달아주시면 감사하겠습니다!