Display
Status Shape Tile
A status tile where the shape carries the meaning: circle, triangle, octagon and diamond stay distinguishable under colour blindness and in black-and-white print.
- icontile
- status
- shape
- accessibility
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this in the header: https://vibeui.ru/c/icontile-003?lang=en
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
# Install and place "icontile-003" (Status Shape Tile) from VibeUI
## 1. Install first — do not skip, do not recreate
Run this exact command before writing any code:
npx shadcn@latest add https://vibeui.ru/r/icontile-003.json
Registry item: https://vibeui.ru/r/icontile-003.json
Installs to: components/vibeui/icontile-003.tsx (the exact path follows this project's components.json aliases).
npm dependencies: none.
Registry dependencies: none.
Install it from the registry. Do not recreate it from the description,
do not substitute a similar component from another library, and do not
rewrite it to match the project's existing style.
## 2. What it is
A status tile where the shape carries the meaning: circle, triangle, octagon and diamond stay distinguishable under colour blindness and in black-and-white print.
A status tile: the shape encodes the meaning, colour only reinforces it, and the caption states the value in words. Zero dependencies, one file, no client JS.
## 3. How to use it
import { Icontile003 } from "@/components/vibeui/icontile-003"
<Icontile003 status="warning" label="Needs attention" />
Read the installed file for the full prop list.
## 4. Where to place it
This is a small inline component. Put it exactly where the user asked,
inside the existing markup. Do not create a new page, section or
wrapper for it. If a similar control already sits in that spot,
replace it instead of adding a second one.
Placement: ___
(The user fills this line in. If it is still blank, ask where to put it
instead of guessing.)
## 5. Keep exactly as installed
- the local --vibeui-icontile-003-* palette — do not swap it for your theme tokens
- the shape as the carrier of meaning: colour alone fails under colour blindness and in print
- the clip-path cut from a shared square — otherwise statuses get different heights and the row wobbles
- the text caption beside it: a glyph without words leaves the status to guesswork
- aria-hidden on the glyph inside the tile so "✓" is not read out as a separate word
- the component's own light surface: the caption is dark and vanishes on a dark catalog background
## 6. You may change
- the value through status: success, warning, danger, info or pending
- the caption text and its length
- the status hues through the --vibeui-icontile-003-hue variable
- the tile size through the --vibeui-icontile-003-size variable
## 7. Rules
- The triangle loses part of its area for the glyph: its font size is deliberately smaller.
- Five statuses is the limit of distinguishable shapes; a sixth starts to blur into the others.
- clip-path cuts the fill and the shadow alike: an outer shadow cannot be attached to this tile.
- Do not lift the CSS variables into globals.css: the component has to stay a single file.
## 8. Verify
- it renders with no console errors;
- it looks like the preview on the VibeUI page you copied this from;
- if it does not, you changed something listed in section 5 — put it back.For developers
npx shadcn@latest add https://vibeui.ru/r/icontile-003.jsonhttps://vibeui.ru/r/icontile-003.jsonСерверный компонент, хуков нет. Форма статуса вырезана clip-path из одной квадратной плитки, поэтому размер и положение в строке общие для всех статусов, и список не пляшет по высоте. Цвет считается от переменной --vibeui-icontile-003-hue, которую переключает атрибут data-status: цвет усиливает форму, но не остаётся единственным носителем смысла — это требование доступности, а не украшение. Знак внутри плитки помечен aria-hidden, значение проговаривает текстовая подпись. Компонент несёт свою белую подложку в форме пилюли: подпись тёмная.
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
import type { ComponentPropsWithoutRef, CSSProperties } from "react"
export type Icontile003Status =
"success" | "warning" | "danger" | "info" | "pending"
export type Icontile003Props = Omit<
ComponentPropsWithoutRef<"span">,
"children"
> & {
status?: Icontile003Status
label?: string
}
// Идея компонента: статус кодируется формой, а не только цветом. Круг,
// треугольник, восьмиугольник и квадрат различимы при любом дальтонизме и в
// чёрно-белой печати, поэтому смысл доходит без цвета. Формы вырезаны
// clip-path из одной квадратной плитки — размер и место в строке остаются
// общими, и список статусов не пляшет по высоте.
const STYLES = `
:where([data-vibeui-block="icontile-003"]){
--vibeui-icontile-003-size:1.75rem;
--vibeui-icontile-003-hue:152;
--vibeui-icontile-003-surface:oklch(1 0 0);
--vibeui-icontile-003-border:oklch(0.9 0.006 265);
--vibeui-icontile-003-fg:oklch(0.26 0.014 265);
--vibeui-icontile-003-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
/* Своя светлая подложка: подпись тёмная, а статус показывают поверх всего. */
[data-vibeui-block="icontile-003"]{
display:inline-flex;align-items:center;gap:0.5rem;
box-sizing:border-box;padding:0.375rem 0.75rem 0.375rem 0.375rem;
background:var(--vibeui-icontile-003-surface);
border:1px solid var(--vibeui-icontile-003-border);border-radius:9999px;
font-family:var(--vibeui-icontile-003-font);color:var(--vibeui-icontile-003-fg);
font-size:0.8125rem;
}
[data-vibeui-block="icontile-003"] [data-part="tile"]{
display:grid;place-items:center;flex:none;
width:var(--vibeui-icontile-003-size);height:var(--vibeui-icontile-003-size);
background:oklch(0.62 0.15 var(--vibeui-icontile-003-hue));
color:oklch(1 0 0);
font-size:calc(var(--vibeui-icontile-003-size) * 0.5);font-weight:700;line-height:1;
border-radius:0.5rem;
}
/* Форма несёт смысл: она читается и в чёрно-белой печати, и при дальтонизме. */
[data-vibeui-block="icontile-003"][data-status="success"]{--vibeui-icontile-003-hue:152}
[data-vibeui-block="icontile-003"][data-status="success"] [data-part="tile"]{border-radius:9999px}
[data-vibeui-block="icontile-003"][data-status="warning"]{--vibeui-icontile-003-hue:78}
[data-vibeui-block="icontile-003"][data-status="warning"] [data-part="tile"]{
border-radius:0;clip-path:polygon(50% 2%,100% 100%,0 100%);
align-content:end;padding-bottom:0.0625rem;font-size:calc(var(--vibeui-icontile-003-size) * 0.38);
}
[data-vibeui-block="icontile-003"][data-status="danger"]{--vibeui-icontile-003-hue:25}
[data-vibeui-block="icontile-003"][data-status="danger"] [data-part="tile"]{
border-radius:0;clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%);
}
[data-vibeui-block="icontile-003"][data-status="info"]{--vibeui-icontile-003-hue:255}
[data-vibeui-block="icontile-003"][data-status="pending"]{--vibeui-icontile-003-hue:265}
[data-vibeui-block="icontile-003"][data-status="pending"] [data-part="tile"]{
background:oklch(0.9 0.01 var(--vibeui-icontile-003-hue));
color:oklch(0.42 0.02 var(--vibeui-icontile-003-hue));
clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);border-radius:0;
}
@media (prefers-reduced-motion:reduce){[data-vibeui-block="icontile-003"] *{animation:none!important;transition:none!important}}
`
const GLYPHS: Record<Icontile003Status, string> = {
success: "✓",
warning: "!",
danger: "✕",
info: "i",
pending: "…",
}
/**
* Статусная плитка: смысл несёт форма, цвет только усиливает её.
* Один файл, ноль зависимостей, собственная палитра.
*/
export function Icontile003({
status = "success",
label = "Проверка пройдена",
className,
style,
...props
}: Icontile003Props) {
return (
<>
<style href="vibeui-icontile-003" precedence="medium">
{STYLES}
</style>
<span
{...props}
data-vibeui-block="icontile-003"
data-status={status}
className={className}
style={style as CSSProperties}
>
<span data-part="tile" aria-hidden="true">
{GLYPHS[status]}
</span>
<span data-part="label">{label}</span>
</span>
</>
)
}