Progress pills indicate a specific point in time of a series of sequential steps. They are used to track progress of something over time.
Note: be sure to make use of the aria attribute as shown in the example if you want this kit to be web accessible.
Progress pills start at 45px
wide if the container allows, but will shrink down to 1px
as the container gets smaller. Resize this window to see each pill shrink.
import React from 'react' import ProgressPills from 'playbook-ui' const ProgressPillsDefault = (props) => { return ( <> <ProgressPills active={2} aria={{ label: '2 out of 3 steps complete' }} steps={3} /> <ProgressPills active={9} aria={{ label: '9 out of 18 steps complete' }} marginTop="md" steps={18} /> </> ) } export default ProgressPillsDefault
Pass fullWidthPill
to the Progress Pill kit to get true 100% full width pills. The kit will take up the full width of the container that it is in.