Selection and input
Chip
Compact toggles for filters and tags.
iOSReact NativeAndroidReact NativeReact Native tier — renders anywhere
Import
ts
import {Chip} from '@hzblj/kara-ui'Props
A filter pill on a Pressable, not a native control — the React Native tier, so it needs no host.
| Prop | Type | Default | Description |
|---|---|---|---|
| label* | string | — | The text in the pill. |
| onPress | () => void | — | Called when the chip is pressed, with the |
| selected | boolean | false | Draws the chip in the accent colours. Off by default. |
| testID | string | — | Test identifier, forwarded to the view. |
label*
stringThe text in the pill.
onPress
() => voidCalled when the chip is pressed, with the selection haptic.
selectedfalse
booleanDraws the chip in the accent colours. Off by default.
testID
stringTest identifier, forwarded to the view.
Platform notes
- A filter pill in the React Native tier, not a native control. It plays
selectionwhen pressed.