-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mantine.dev] Add SemiCircleProgress documentation
- Loading branch information
Showing
5 changed files
with
51 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { SemiCircleProgressDemos } from '@docs/demos'; | ||
import { Layout } from '@/layout'; | ||
import { MDX_DATA } from '@/mdx'; | ||
|
||
export default Layout(MDX_DATA.SemiCircleProgress); | ||
|
||
## Usage | ||
|
||
<Demo data={SemiCircleProgressDemos.usage} /> | ||
|
||
## Change empty segment color | ||
|
||
Use `emptySegmentColor` prop to change color of empty segment, | ||
it accepts key of `theme.colors` or any valid CSS color value: | ||
|
||
<Demo data={SemiCircleProgressDemos.emptySegmentColor} /> | ||
|
||
## Change label position | ||
|
||
By default, the label is displayed at the bottom of the component, | ||
you can change its position to `center` by using `labelPosition` prop: | ||
|
||
<Demo data={SemiCircleProgressDemos.labelPosition} /> | ||
|
||
## Filled segment transition | ||
|
||
By default, transitions are disabled, to enable them, set `transitionDuration` prop | ||
to a number of milliseconds: | ||
|
||
<Demo data={SemiCircleProgressDemos.transitions} /> |
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