Components
Visual
Small data pictures that replace sentences with shapes. Token colours only, never accent.
bunx shadcn@latest add @nalarx/visualEvery picture is decorative: show the number in text as well. Colours take token strings (var(--chart-2)), never hex.
Dot
Sparkline and MiniBars
Meter and SplitBar
Ring and IconTile
StatTile and StatStrip
Net sales
Rp 1,2 jt
Open tasks
18
Coverage
92%
Net sales
Rp 1,2 jt
Open tasks
18
Coverage
92%
Exports
| Export | Main props |
|---|---|
Dot | tone, size |
Sparkline | values, width, height, color, fill |
Meter | value, max, color, height |
SplitBar | parts: { value, color }[], height |
Ring | pct, size, color, children |
MiniBars | values, width, height, color |
IconTile | name, size |
StatTile | label, value, sub, visual, icon |
StatStrip | min (px per tile before wrapping) |
Replaces
Visual.tsx (web). The Platform's own copies and NxIconTile.