# `LightningWeb.Components.Pills`
[🔗](https://github.com/OpenFn/lightning/blob/main/lib/lightning_web/components/pills.ex#L1)

UI component to render a pill to create tags.

# `filter_chip`

A filter chip that acts as both a state display and a dropdown trigger.
Gray when inactive, indigo when a filter is active.

## Attributes

* `active` (`:boolean`) - Defaults to `false`.
* `clear_fields` (`:list`) - Defaults to `[]`.
* `id` (`:string`) (required)
* `target` (`:any`) - Defaults to `nil`.
* Global attributes are accepted.
## Slots

* `inner_block` (required)

# `name_badge`

Renders a preview of a derived URL-safe name inside a yellow badge.

Shows the badge only when the derived name is non-empty.

## Example

```heex
<.name_badge name={@name} field={f[:name]}>
  Your project will be named
</.name_badge>
```

## Attributes

* `name` (`:string`) (required) - The derived URL-safe name.
* `field` (`Phoenix.HTML.FormField`) (required) - The hidden :name field.
## Slots

* `inner_block`

# `pill`

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)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
