Display
SKChip
SKChip covers the four Material 3 chip roles with consistent selection, dismissal and overflow behaviour, including a chip group container that wraps and scrolls.
Not yet released. SKChip is planned for 1.6.0; the current published release (1.4.0-alpha01) ships SKText and SKTextField only.
Usage
SKChip.kt
SKChipGroup {
SKChip(text = "Compose", type = SKChipType.Filter, selected = true)
SKChip(text = "XML", type = SKChipType.Filter)
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text | String | — | Chip label. |
| type | SKChipType | Assist | Assist, Filter, Input or Suggestion. |
| selected | Boolean | false | Selection state. |
Accessibility
Selected state exposed, dismiss action carries its own accessible label.
Theming
Shape defaults to SKTheme.shapes.small.
API surface
- SKChip
- SKChipGroup
- SKChipType