Products · Components
Chip
A small button that can be selected, such as a filter.
A row of chips makes a filter, like Sent and Received. Keep the chosen one in the state and bind it to selected.
Children: Nothing
Example
<View direction="row" gap="small">
<Chip label="All" selected />
<Chip label="Sent" icon="send" />
<Chip label="Received" icon="download" />
</View>Props
| Prop | Type | What it is |
|---|---|---|
label | string | |
icon | icon name, or one of your own icons | |
selected | boolean | Default: false. |
disabled | boolean | Dims it, and the person can't use it. |
Events
| Event | Sends | Notes |
|---|---|---|
onTap | Nothing |
