Live example
Properties
|
Property |
Type |
Default |
|---|---|---|
|
value |
string |
|
|
heading |
string |
|
|
appearance |
'raised-shadow' | 'raised-outline' |
'raised-shadow' |
|
icon |
ChipIconProps |
undefined |
|
className |
string |
undefined |
|
style |
CSSProperties |
undefined |
|
id |
string |
undefined |
|
testID |
string |
undefined |
|
aria-label |
string |
undefined |
|
Injected by ChipGroup: |
|
|
|
selectedValue |
string |
undefined |
|
onSelect |
function |
undefined |
Native properties
|
Property |
Type |
Default |
|---|---|---|
|
value |
string |
|
|
heading |
string |
|
|
appearance |
'raised-shadow' | 'raised-outline' |
'raised-shadow' |
|
icon |
ChipIconProps |
undefined |
|
fullWidth |
boolean |
true |
|
testID |
string |
undefined |
|
accessibilityLabel |
string |
chipValue |
|
id |
string |
undefined |
|
Injected by ChipGroup: |
|
|
|
selectedValue |
string |
undefined |
|
onSelect |
function |
undefined |
Composition
- Heading
- Value
- Background
|
Tokens |
|
|---|---|
|
Background color - Idle state |
color.surface.bright |
|
Background color - Selected state |
color.surface.onsurface |
|
Text color - Idle state |
color.surface.onsurface |
|
Text color - Selected state |
color.surface.bright |
|
Text font weight - Heading |
font.family.book |
|
Text font weight - Value |
font.family.bold |
|
Text font size |
font.size.md |
|
Text line height |
font.lineheight.md |
|
Border radius |
border.radius.lg |
States
Idle
Selected (filter variant only)