LightningWeb.Components.Pills (Lightning v2.14.5-pre1)
View SourceUI component to render a pill to create tags.
Summary
Functions
Renders a pill with a color.
Functions
Renders a pill with a color.
Example
<.pill color="red">
Red pill
</.pill>
## Colors
- `gray` **default**
- `red`
- `yellow`
- `green`
- `blue`
- `indigo`
- `purple`
- `pink`
## Attributes
* `color` (`:string`) - Defaults to `"gray"`. Must be one of `"gray"`, `"red"`, `"yellow"`, `"green"`, `"blue"`, `"indigo"`, `"purple"`, or `"pink"`.
* Global attributes are accepted.
## Slots
* `inner_block` (required)