Skip to main content

Pill

Use the Pill component to indicate information is contextual and grouped under a single taxonomy. It renders text with a coloured background. Useful for showing transaction status.

Usage Example

Live Editor
Result
Loading...

Props

PropTypeDefaultDescription
alignItemsstring (optional)'center'
bgstring (optional)'#FFF'
borderRadiusinteger (optional)3
colorstring (optional)'dark-gray'
displayobject (optional)'inline-flex'
fontSizeinteger (optional)1
fontWeightinteger (optional)2
heightstring (optional)'2rem'
lineHeightstring (optional)'solid'
pxinteger (optional)3
pyinteger (optional)1

Pill uses COMMON, TYPOGRAPHY groups of Styled System props.