Skip to content

Chip

...

Browser support

Parameters

The Web component uses a <z-chip> tag.

The parametrization of the component can be done with the following custom HTML params:

NameTypeDescription
content
(optional)
stringThe text to be displayed in the chip.
disabled
(optional)
booleanBlocks the interaction with the component.
readonly
(optional)
booleanTransforms the chip into an output.

Playground

Customization

HTML Examples

Imports
html
<link rel="stylesheet" href="/0.3.7/@zurich/web-components/styles.css" />
<script type="module" src="/0.3.7/@zurich/web-components/chip.js"></script>
Code
html
<z-chip>Chip</z-chip>
<z-chip disabled>Disabled chip</z-chip>
<z-chip readonly>Readonly chip</z-chip>