Icon tile
An icon on a square of colour, for a step, a feature, a row or a status. Weight comes from the background alone, in any tone or a colour of your own, and its colours fade when it changes.
Examples
Tones
Neutral by default. A status takes its tone: success, warning or destructive, and primary follows the brand.
Weights
Soft is the default. Solid marks the one that matters now and subtle what is still to come, with no outline.
Primary
The primary tone follows the brand colour, so a features grid takes it from the theme.
Custom colour
color takes any CSS colour, and makes its tint and fill as the tones do. Check its contrast on its tint.
Installation
npx shadcn@latest add https://kinoui.com/r/icon-tile.json- Files
lib/reduce-motion.tscomponents/kino/icon-tile.tsx- Packages
@ui-sdk/reactclass-variance-authority- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
Props
An icon, a number or a short glyph on a square of colour. Takes render to draw it as another element.
Data attributes
CSS variables
Accessibility
- It is decorative and hidden from screen readers: the words beside it say what it shows. Give
labelwhere they don’t, which makes it an image with that name. - A status never relies on its colour: pick an icon that says it too, such as a tick or a cross in an octagon.
- In forced colours a solid tile takes the highlight colour, and the others the text colour.
For agents
Nothing here takes input, so snapshot() lists nothing.