@mandala-ui/progress-bar
v1.1.1
Published
Mandala UI Progress Bar Component
Downloads
3
Maintainers
Readme
Mandala UI ProgressBar Component
Mandala is a React component library that utilizes a declarative CSS library for styling.
Installation
Check the MonoRepo README for installation.
Description
ProgressBar is a 100% width element that takes a percent prop and renders that much of it in another color.
Usage
if using the whole library:
import { ProgressBar } from 'mandala';
if only using this component:
import ProgressBar from '@mandala-ui/progress-bar';
Props
backgroundColor
- the color of the border around the dotcolor
- the width of the border around the dotlarge
- the color of the dotpercent
- the width of the inner section between the dot and borderpill
- the color of the inner section of the outlined dot
| propName | propType | defaultValue | isRequired | | -------- | -------- | ------------ | ---------- | | backgroundColor | string | null | - | | color | string | false | - | | large | boolean| 'white' | - | | percent | number | false | - | | pill | boolean| false | - |
TODO:
- [ ] prop to add/remove depth (shadow)
- [ ] borderColor adds a border of relevant color
- [ ] border width