Pill
Removable and non-removable tags
Source
Docs
Package
Usage
React
Size
Inside inputs
Pill
component is designed to be used inside inputs. It can be used to create custom
multi select or tag inputs.
Item 0Item 1Item 2Item 3Item 4Item 5Item 6Item 7Item 8Item 9
Left section
leftSection
allow adding icons or any other element to the left side of the button. When a section is added, padding on the corresponding side is reduced.
Note that leftSection
is flipped in RTL mode (leftSection is displayed on the right and remove button is displayed on the left).
React
Styles API
Pill
supports Styles API, you can add styles to any inner element of the component withclassNames
prop. Follow Styles API documentation to learn more.
Test pill
Component Styles API
Hover over selectors to highlight corresponding elements