Displays a stylized element that represents a value or a related action.
This component is based on the span
element and supports common margin props m
, mx
, my
, ml
, mr
, mt
, mb
. View source
You may nest icons directly inside the chips. The correct gap between the icon and the text is provided automatically.
Use the weight
prop to set the weight of the chip. Normally, you should use bold weight for chips that represent unique values, and regular weight for related actions.
If you pass a onRemove
function, a small button will be rendered on the right side of the chip.