Pill
Pill is a small visual element that can contain descriptive text and an icon. You can use pills to label, filter or sort interactive content, trigger actions or make selections.
| Salt package | @salt-ds/core |
|---|---|
| Available since | 1.14.0 |
| Key | Function |
|---|---|
| Enter / Space | When focus is on the pill, this action activates it. |
| Tab |
|
| Shift + Tab | When the pill has focus, this action moves focus out of the pill to the previous component in the tab order. |
| Key | Function |
|---|---|
| Space | When focus is on the pill within a selectable group, this action toggles its selection state (selects or deselects the pill). |
| Tab | When focus is before the pill group, this action moves focus to the first pill in the group. |
| Shift + Tab | When focus is after the pill group, this action will shift focus to the last pill in the group. |
| Key | Function |
|---|---|
| Enter / Space | When focus is on the pill, this action activates it. |
| Tab |
|
| Shift + Tab | When the pill has focus, this action moves focus out of the pill to the previous component in the tab order. |
| Key | Function |
|---|---|
| Space | When focus is on the pill within a selectable group, this action toggles its selection state (selects or deselects the pill). |
| Tab | When focus is before the pill group, this action moves focus to the first pill in the group. |
| Shift + Tab | When focus is after the pill group, this action will shift focus to the last pill in the group. |
| Key | Function |
|---|---|
| Enter / Space | When focus is on the pill, this action activates it. |
| Tab |
|
| Shift + Tab | When the pill has focus, this action moves focus out of the pill to the previous component in the tab order. |
| Key | Function |
|---|---|
| Space | When focus is on the pill within a selectable group, this action toggles its selection state (selects or deselects the pill). |
| Tab | When focus is before the pill group, this action moves focus to the first pill in the group. |
| Shift + Tab | When focus is after the pill group, this action will shift focus to the last pill in the group. |