Chip
import { Chip } from "@study/ui"
Result
Loading...
Live Editor
<div style={{ display: "flex", gap: 8, flexWrap: "wrap" }}> <Chip tone="blau">CE</Chip> <Chip tone="petrol">in 9 days</Chip> <Chip tone="violett" icon="cards">24 due</Chip> <Chip tone="gelb" icon="claude">via Claude</Chip> <Chip>Draft</Chip> </div>
Variants and states
Light
BlueMintSageButterPeachRoséLavenderStone
smallnormal
Streak: 6 days
Dark
BlueMintSageButterPeachRoséLavenderStone
smallnormal
Streak: 6 days
When to use
EM
✓ DoShort, in the colour of the course it belongs to.
Click here to open the course
✗ Don'tWhole sentences or clicks – chips cannot be pressed.
Props
| Prop | Type | Default | Meaning |
|---|---|---|---|
icon | enum | – | |
onTint | boolean | – | On a tinted card: a white chip that stands out from the tint. |
size | "sm" | "md" | md | |
tone | "blau" | "petrol" | "gruen" | "gelb" | "orange" | "rot" | "violett" | "grau" | grau | The colour; a subject's colour for things of that subject. Default the neutral grey. |
Accessibility
- Plain text; an icon in it is decoration.
- If an abbreviation like "CE" stands alone, give it a
titlewith the full name.