To use Chip
, you can import the component from the @dhis2/ui
library
import { Chip } from '@dhis2/ui'
Name | Type | Default | Required | Description |
---|---|---|---|---|
children | any | |||
className | string | |||
dataTest | string | 'dhis2-uicore-chip' |
||
dense | boolean | |||
disabled | boolean | |||
dragging | boolean | |||
icon | element | |||
marginBottom | number | 4 |
margin-bottom value, applied in px |
|
marginInlineEnd | number | margin-inline-end value, applied in px |
||
marginInlineStart | number | margin-inline-start value, applied in px |
||
marginLeft | number | margin-inline-start value, applied in px |
||
marginRight | number | margin-inline-end value, applied in px |
||
marginTop | number | 4 |
margin-top value, applied in px |
|
overflow | boolean | |||
selected | boolean | |||
onClick | function | |||
onRemove | function |