Configurator
<oc-chip-v3><input type="checkbox" aria-label="oc-auto"><label slot="content">Nachhaltig</label></oc-chip-v3>Usage
Anatomy
- Icon or image left (optional)
- Label
- Icon right (optional)
- Container
HTML
<div class="anatomy" style="margin:40px 56px">
<span style="display:inline-block;zoom:1.6"><oc-chip-v3 icon-left="sparkles" icon-right="close"><button aria-label="Neu entfernen">Neu</button></oc-chip-v3></span>
<span class="anatomy-pin" style="left:14%;top:-18%">1</span>
<span class="anatomy-pin" style="left:50%;top:-18%">2</span>
<span class="anatomy-pin" style="left:86%;top:-18%">3</span>
<span class="anatomy-pin" style="left:100%;top:100%">4</span>
<ol class="anatomy-key"><li data-n="1">Icon or image left (optional)</li><li data-n="2">Label</li><li data-n="3">Icon right (optional)</li><li data-n="4">Container</li></ol>Variants
The chip component can contain different types of content like text, icon or image. On the left side, you can place an icon or image, and on the right side, you can only place icons. The chip is available in two different sizes (chip 100 & chip 200).
The default variant should be used on canvas background. The on-color variant should be used on frame background.
Label only
Icon and label
Image and label
HTML
<div class="on-frame" style="margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px">
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">Label only</p><oc-chip-v3><input type="checkbox" aria-label="oc-auto"><label slot="content">Damen</label></oc-chip-v3></div>
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">Icon and label</p><oc-chip-v3 icon-left="sparkles"><input type="checkbox" aria-label="oc-auto"><label slot="content">Neu</label></oc-chip-v3></div>
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">Image and label</p><oc-chip-v3><img slot="image" src="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%2712%27 fill=%27%232b6cd6%27/%3E%3C/svg%3E" alt="Farbe Blau." style="max-width:none;margin-top:0;margin-bottom:0"><input type="checkbox" aria-label="oc-auto"><label slot="content">Blau</label></oc-chip-v3></div>
On the canvas: size 100 and 200
On a coloured surface: over-color
HTML
<div class="on-frame" style="margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px">
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">On the canvas: size 100 and 200</p><oc-chip-v3 size="100" icon-left="sparkles"><input type="checkbox" aria-label="oc-auto"><label slot="content">Neu</label></oc-chip-v3><oc-chip-v3 size="200" icon-left="sparkles"><input type="checkbox" aria-label="oc-auto"><label slot="content">Neu</label></oc-chip-v3></div>
<div style="padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">On a coloured surface: over-color</p><oc-chip-v3 size="100" over-color icon-left="sparkles"><input type="checkbox" aria-label="oc-auto"><label slot="content">Neu</label></oc-chip-v3><oc-chip-v3 size="200" over-color icon-left="sparkles"><input type="checkbox" aria-label="oc-auto"><label slot="content">Neu</label></oc-chip-v3></div>
The chip can have the following additional attributes:
- Removable: Displays a "close" affordance icon on the right and forces the chip to be removed on click/tap.
- Checked: Adds a checked state to the chip that can optionally be extended with the "check" icon as the icon on the left. The "check" icon overrides the current icon or image.
- Disabled: Disables the chip.
Removable
Selected with check mark
Disabled
HTML
<div class="on-frame" style="margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px">
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">Removable</p><oc-chip-v3 icon-right="close"><button aria-label="Blau entfernen">Blau</button></oc-chip-v3></div>
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">Selected with check mark</p><oc-chip-v3 use-check-state-icon><input type="checkbox" checked aria-label="oc-auto"><label slot="content">Nachhaltig</label></oc-chip-v3></div>
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">Disabled</p><oc-chip-v3><input type="checkbox" disabled aria-label="oc-auto"><label slot="content">Ausverkauft</label></oc-chip-v3></div>
Behavior
States
Default: hover, press and tab to it
Over colour: hover, press and tab to it
Selected: hover, press and tab to it
HTML
<div class="on-frame" style="margin:0;display:grid;gap:8px">
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">Default: hover, press and tab to it</p><oc-chip-v3 icon-right="close" icon-left="smiley-positive"><button aria-label="Blau entfernen">Blau</button></oc-chip-v3></div>
<div style="padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center"><p class="demo-label" style="width:100%;text-align:center">Over colour: hover, press and tab to it</p><oc-chip-v3 icon-right="close" over-color icon-left="smiley-positive"><button aria-label="Blau entfernen">Blau</button></oc-chip-v3></div>
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">Selected: hover, press and tab to it</p><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" checked aria-label="oc-auto"><label slot="content">Blau</label></oc-chip-v3></div>
Fitting
The width of the chip fits its content, meanwhile the height of the chip remains fixed. The chip is also available as fill-parent with centered text. The chip also supports multiline text that is left-aligned.
Width fits the content; height 2 rem (size 100) and 3 rem (size 200)
HTML
<div class="on-frame" style="margin:0;display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:8px">
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">Width fits the content; height 2 rem (size 100) and 3 rem (size 200)</p><oc-chip-v3 icon-right="close" size="100" icon-left="smiley-positive"><button aria-label="Blau entfernen">Blau</button></oc-chip-v3><oc-chip-v3 icon-right="close" size="200" icon-left="smiley-positive"><button aria-label="Blau entfernen">Blau</button></oc-chip-v3></div>
fill-parent
fill-parent, height fits the content
HTML
<div class="on-frame" style="margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px">
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 24px;display:flex;flex-direction:column;gap:8px"><p class="demo-label" style="width:100%;text-align:center">fill-parent</p><oc-chip-v3 width-behavior="fill"><input type="checkbox" aria-label="oc-auto"><label slot="content">Das ist ein Standard-Chip</label></oc-chip-v3></div>
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 24px;display:flex;flex-direction:column;gap:16px"><p class="demo-label" style="width:100%;text-align:center">fill-parent, height fits the content</p><oc-chip-v3 width-behavior="fill"><input type="checkbox" aria-label="oc-auto"><label slot="content">Das ist ein Standard-Chip<br>mit zwei Zeilen</label></oc-chip-v3><oc-chip-v3 width-behavior="fill" icon-left="smiley-positive" icon-right="close"><button>Das ist ein Chip mit noch mehr Zeilen, genau genommen drei. Rechts ist auch Platz für ein Icon.</button></oc-chip-v3></div>
Placement
When placing multiple chips horizontal or vertical to each other, make sure there is a gap of 8px in-between. Chips can be arranged either horizontally next to each other, extending beyond the viewport in a scrollable cinema, or they can stay within the viewport by wrapping below each other.
Wrapping: 8 px gaps
In a cinema: one scrollable row
HTML
<div class="on-frame" style="margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px">
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;justify-content:flex-start"><p class="demo-label" style="width:100%;text-align:center">Wrapping: 8 px gaps</p><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Damen</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Herren</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Kinder</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Baby</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Sport</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Schuhe</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Wäsche</label></oc-chip-v3></div>
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;min-width:0"><p class="demo-label" style="width:100%;text-align:center">In a cinema: one scrollable row</p><oc-cinema-v1 oc-aria-label="Kategorien" resizing="none"><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Damen</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Herren</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Kinder</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Baby</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Sport</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Schuhe</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="checkbox" aria-label="oc-auto"><label slot="content">Wäsche</label></oc-chip-v3></oc-cinema-v1></div>
Selection modes
Chips can operate in two different modes: single-selection or multi-selection.
In single-selection mode, choosing one option automatically deselects any previously selected options - serving as radio buttons.
In multi-selection mode, multiple chips can be selected at the same time, allowing users to choose several options without deselecting any of the previously selected ones - serving as checkboxes.
There are no further signifiers to distinguish the two selection modes.
Single select (radio)
Multi select (checkbox) with check mark
HTML
<div class="on-frame" style="margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px">
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">Single select (radio)</p><oc-chip-v3 icon-left="smiley-positive"><input type="radio" name="chip-single" aria-label="oc-auto"><label slot="content">Relevanz</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="radio" name="chip-single" checked aria-label="oc-auto"><label slot="content">Preis</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="radio" name="chip-single" aria-label="oc-auto"><label slot="content">Neuheiten</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive"><input type="radio" name="chip-single" aria-label="oc-auto"><label slot="content">Bewertung</label></oc-chip-v3></div>
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:32px 16px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center"><p class="demo-label" style="width:100%;text-align:center">Multi select (checkbox) with check mark</p><oc-chip-v3 icon-left="smiley-positive" use-check-state-icon><input type="checkbox" checked aria-label="oc-auto"><label slot="content">Schwarz</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive" use-check-state-icon><input type="checkbox" checked aria-label="oc-auto"><label slot="content">Weiß</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive" use-check-state-icon><input type="checkbox" aria-label="oc-auto"><label slot="content">Rot</label></oc-chip-v3><oc-chip-v3 icon-left="smiley-positive" use-check-state-icon><input type="checkbox" checked aria-label="oc-auto"><label slot="content">Blau</label></oc-chip-v3></div>
Chips vs. buttons
Interacting with a chip keeps users in the current step of their journey, for example when filtering or sorting. Meanwhile, interacting with a button takes users to the next or previous step in their journey. Buttons are used to perform actions such as Submit, Delete, or Confirm.
Chips should preferably be used in sets of more than 3. In comparison, buttons should be used as little as possible, ideally no more than 3 within the feature.
Größe wählen
Chips: choose an option
Bestellung
Buttons: trigger an action
HTML
<div class="on-frame" style="margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px">
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:24px;display:flex;flex-direction:column;gap:16px;border-radius:24px 24px 0 0"><p class="demo-title">Größe wählen</p><div style="display:flex;flex-wrap:wrap;gap:8px"><oc-chip-v3><input type="radio" name="chip-vs-button" checked aria-label="oc-auto"><label slot="content">36</label></oc-chip-v3><oc-chip-v3><input type="radio" name="chip-vs-button" aria-label="oc-auto"><label slot="content">38</label></oc-chip-v3><oc-chip-v3><input type="radio" name="chip-vs-button" aria-label="oc-auto"><label slot="content">40</label></oc-chip-v3><oc-chip-v3><input type="radio" name="chip-vs-button" aria-label="oc-auto"><label slot="content">42</label></oc-chip-v3><oc-chip-v3><input type="radio" name="chip-vs-button" aria-label="oc-auto"><label slot="content">44</label></oc-chip-v3><oc-chip-v3><input type="radio" name="chip-vs-button" aria-label="oc-auto"><label slot="content">46</label></oc-chip-v3></div><p class="demo-label">Chips: choose an option</p></div>
<div style="background:var(--oc-semantic-color-background-canvas, #fff);padding:24px;display:flex;flex-direction:column;gap:12px"><p class="demo-title">Bestellung</p><oc-button-v1 variant="primary" icon-type-right="arrow-right">Weiter zur Kasse</oc-button-v1><oc-button-v1 variant="secondary" icon-type-right="arrow-right">Zurück zum Warenkorb</oc-button-v1><p class="demo-label">Buttons: trigger an action</p></div>
Best practices
Content guidelines
- Keep the label of the chip shorter than 3 words.
- Use adjectives or nouns for the label.
- Use long sentences with 3 or more words, including puncuation.
- Use verbs for the label.
Accessibility
Related components
Implementation
Live demo
Neuheiten
3 Artikelandas
Sessel „Ilvy“ aus Bouclé, Eiche natur
399,99 €
OTTO products
Sneaker aus Glattleder, Weiß
99,99 € 79,99 €
Hanseatic
Over-Ear-Kopfhörer mit Noise Cancelling
59,99 €
HTML
<div style="display:flex;align-items:baseline;gap:8px;flex-wrap:wrap"><p class="demo-title" style="font-size:1.25rem">Neuheiten</p><span class="demo-copy" style="color:var(--oc-semantic-color-text-secondary, #6d6d6d)">3 Artikel</span></div>
<oc-chip-v3><input type="radio" name="chip-demo-cat" checked aria-label="oc-auto"><label slot="content">Alle</label></oc-chip-v3><oc-chip-v3><input type="radio" name="chip-demo-cat" aria-label="oc-auto"><label slot="content">Möbel</label></oc-chip-v3><oc-chip-v3><input type="radio" name="chip-demo-cat" aria-label="oc-auto"><label slot="content">Schuhe</label></oc-chip-v3><oc-chip-v3><input type="radio" name="chip-demo-cat" aria-label="oc-auto"><label slot="content">Elektronik</label></oc-chip-v3><oc-chip-v3><input type="radio" name="chip-demo-cat" aria-label="oc-auto"><label slot="content">Wohnaccessoires</label></oc-chip-v3></div>
<oc-chip-v3 icon-left="filter" size="100"><button>Filter</button></oc-chip-v3><oc-chip-v3 icon-right="close" size="100"><button aria-label="Filter Nachhaltig entfernen">Nachhaltig</button></oc-chip-v3><oc-chip-v3 icon-right="close" size="100"><button aria-label="Filter Bis 400 € entfernen">Bis 400 €</button></oc-chip-v3></div>
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:24px 16px"><article style="display:flex;flex-direction:column;gap:2px;min-width:0"><div style="position:relative;border-radius:16px;overflow:hidden;background:#f3f3f3"><img src="/previews/imagery/samples/otto-product-still/product-armchair.webp" alt="Sessel „Ilvy“ aus Bouclé, Eiche natur" width="600" height="600" loading="lazy" style="display:block;width:100%;height:auto;margin:0;mix-blend-mode:multiply"><div style="position:absolute;left:12px;bottom:12px;display:flex;gap:4px;flex-wrap:wrap"><oc-tag-v1 variant="info-primary" size="50">Neu</oc-tag-v1></div></div><p class="demo-copy" style="margin-top:10px;color:var(--oc-semantic-color-text-secondary, #6d6d6d);text-transform:uppercase;font-size:0.75rem;letter-spacing:0.02em">andas</p><p class="demo-copy">Sessel „Ilvy“ aus Bouclé, Eiche natur</p><p class="demo-copy" style="margin-top:6px"><strong style="font-size:1rem">399,99 €</strong></p></article><article style="display:flex;flex-direction:column;gap:2px;min-width:0"><div style="position:relative;border-radius:16px;overflow:hidden;background:#f3f3f3"><img src="/previews/imagery/samples/otto-product-still/product-sneaker.webp" alt="Sneaker aus Glattleder, Weiß" width="600" height="600" loading="lazy" style="display:block;width:100%;height:auto;margin:0;mix-blend-mode:multiply"><div style="position:absolute;left:12px;bottom:12px;display:flex;gap:4px;flex-wrap:wrap"><oc-tag-v1 variant="sale" size="50">-20 %</oc-tag-v1></div></div><p class="demo-copy" style="margin-top:10px;color:var(--oc-semantic-color-text-secondary, #6d6d6d);text-transform:uppercase;font-size:0.75rem;letter-spacing:0.02em">OTTO products</p><p class="demo-copy">Sneaker aus Glattleder, Weiß</p><p class="demo-copy" style="margin-top:6px"><s style="color:var(--oc-semantic-color-text-secondary, #6d6d6d)">99,99 €</s> <strong style="color:var(--oc-semantic-color-text-sale, #e20020);font-size:1rem">79,99 €</strong></p></article><article style="display:flex;flex-direction:column;gap:2px;min-width:0"><div style="position:relative;border-radius:16px;overflow:hidden;background:#f3f3f3"><img src="/previews/imagery/samples/otto-product-still/product-headphones.webp" alt="Over-Ear-Kopfhörer mit Noise Cancelling" width="600" height="600" loading="lazy" style="display:block;width:100%;height:auto;margin:0;mix-blend-mode:multiply"></div><p class="demo-copy" style="margin-top:10px;color:var(--oc-semantic-color-text-secondary, #6d6d6d);text-transform:uppercase;font-size:0.75rem;letter-spacing:0.02em">Hanseatic</p><p class="demo-copy">Over-Ear-Kopfhörer mit Noise Cancelling</p><p class="demo-copy" style="margin-top:6px"><strong style="font-size:1rem">59,99 €</strong></p></article></div>


