IconStatus
A small color cube for status and token previews.
When to use
Use IconStatus when you need a small color cube for status and token previews.
Import
TypeScript
import { IconStatus } from '@gzodo/ui'IconStatus is a compact swatch. Pass a TagColorTone for theme semantics, or any CSS color string (hex, rgb, var(--…)). Use it next to labels, in selects, and in docs token tables.
Examples
3Tones
Theme tones map to
--danger, --success, --warning, --pending, and --muted.#f50
#2db7f5
#87d068
var(--primary)
Custom color
Any non-tone string is applied as
backgroundColor.Sizes
sm 12px, md 14px (default), lg 16px.IconStatus
5IconStatus
Property
Description
Type
Default
colorTone name or any CSS color. Tones use theme tokens; other values set backgroundColor.
string | TagColorTone—
sizeCube size in pixels (12 / 14 / 16).
'sm' | 'md' | 'lg''md'classNameClass added on the cube.
string—
styleInline styles merged after the background color.
CSSProperties—
titleNative tooltip on the cube.
string—