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-hapticsUsage
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
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | Chip text. | |
| selected | boolean | false | Filled when on. |
| onPress | () => void | – | Called on tap. |
| onRemove | () => void | – | Shows a close mark, for chosen tags. |
ChipRow
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | The chips; the row scrolls sideways when they overflow. |