Chip

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

Chip composition 1
  1. Heading
  2. Value
  3. Background
Chip composition 2

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

Chip composition 3

Idle

Chip composition 4

Selected (filter variant only)