Mobile › Inputs

Chip

Compact choices for filters and tags. Put several in a ChipRow, which scrolls sideways.

Installation

npx expo install plankui-mobile react-native-safe-area-context expo-haptics

Usage

import { Chip, ChipRow } from "plankui-mobile";

<ChipRow>
  {["Design", "Code", "AI"].map((c) => (
    <Chip key={c} label={c} selected={picked.includes(c)} onPress={() => toggle(c)} />
  ))}
</ChipRow>

iOS and Android

iOS: Rounded capsules, filled with the accent when selected.

Android: Material 3 filter chips: 8 dp corners and a check when selected.

API reference

PropTypeDefaultDescription
labelstringChip text.
selectedbooleanfalseFilled when on.
onPress() => void–Called on tap.
onRemove() => void–Shows a close mark, for chosen tags.

ChipRow

PropTypeDefaultDescription
childrenReactNodeThe chips; the row scrolls sideways when they overflow.