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.

Betasince 1.6.0Compose · XMLAll components

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

PropTypeDefaultDescription
textString—Chip label.
typeSKChipTypeAssistAssist, Filter, Input or Suggestion.
selectedBooleanfalseSelection state.

Accessibility

Selected state exposed, dismiss action carries its own accessible label.

Theming

Shape defaults to SKTheme.shapes.small.

API surface

  • SKChip
  • SKChipGroup
  • SKChipType

Related