Skip to content

Chip โ€‹

...

Browser support โ€‹

...

Parameters โ€‹

The CSS component uses a <button> tag. Setting to default the parameter z-chip will render the Chip component.

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

NameTypeDescription
z-chipstring

Setting this parameter to default will inject render the chip component.

contentstringThe text to be displayed in the chip.
disabledbooleanBlocks the interaction with the component.
readonlybooleanTransforms the chip into an output.

Playground โ€‹

Customization โ€‹

HTML Examples โ€‹

Imports
html
<link rel="stylesheet" href="/0.3.6/@zurich/css-components/base.css" />
<link rel="stylesheet" href="/0.3.6/@zurich/css-components/Chip.css" />
Code
html
<button z-chip>Chip</button>
<button z-chip disabled>Disabled chip</button>
<output z-chip>Readonly chip</output>