Displays the current progress of an operation flow. User understanding increases when paired with labels or numbers.
When rendering a Progress Simple through within a Flex container, you must pass flex="1"
to the kit itself so that it fills the available space
Progress Simple can pass colors - primary, green, red, and yellow. Variants names are default
, positive
, negative
, and warning
, respectively.
import React from 'react' import { ProgressSimple } from 'playbook-ui' const ProgressSimpleVariants = () => { return ( <div> <ProgressSimple percent={64.5} /> <br /> <ProgressSimple percent={90} variant="positive" /> <br /> <ProgressSimple percent={10} variant="negative" /> <br /> <ProgressSimple percent={40} variant="warning" /> </div> ) } export default ProgressSimpleVariants
import React from 'react' import { ProgressSimple } from 'playbook-ui' const ProgressSimpleAlign = () => { return ( <div> <ProgressSimple align="left" percent={45} width="100px" /> <br /> <ProgressSimple align="center" percent={45} width="100px" /> <br /> <ProgressSimple align="right" percent={45} width="100px" /> </div> ) } export default ProgressSimpleAlign