Skip to content
Button
Disabled chip
Readonly chip
Chip - Web Component
The Chip component can be used imported from:
Playground
Parameters
The Web component uses the <z-chip>
tag:
By default, all the parameters are optional or can be set in different, except for the ones marked as required
The parametrization of the component can be done with the following custom HTML params:
Name | Type | Description | Slot | A11y |
---|---|---|---|---|
content | string | The text to be displayed in the chip. | default | |
disabled | boolean | Blocks the interaction with the component. | ||
readonly | boolean | Transforms the chip into an output. |
Events
This component has events. Check the documentation about how to use the events.
Name | Payload | Description |
---|---|---|
click | MouseEvent | Fires when the chip is clicked. |
Slots
This component has slots. Check the documentation about how to use the slots.
Name | Tags | Description |
---|---|---|
default | span | Content of the chip. |
Parameters use
content
The text or content inside the chip. It uses the default
slot too.
Flags
disabled
The attribute disabled
will block the interaction with the component
readonly
The attribute readonly
will make the component to behave as a readonly component.
Browser support
Detected engine:
Chromium
Webkit
Gecko