Iso figure preview

Iso figure

Solid, shaded isometric drawings of small machines that explain an idea by working, in a plate with a figure number, title, hint, live readout and legend. Comes with a press-and-pull test rig and the kit to draw your own. Zero dependencies, light and dark.

  • Group
    Interactive illustrations
  • Origin
    Copied · Anatomy · source
  • License
    MIT
  • Added
    Oct 23
npx shadcn@latest add @deank/iso-figure

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { IsoFigure } from "@/registry/blocks/iso-figure/iso-figure";

<IsoFigure>Label</IsoFigure>

Props

PropTypeDefaultDescription
figure?IsoFigureName"test-rig"A ready figure. "test-rig": a glass button on a spring rig you press and pull; a dial gauge reads the lean. Ignored when children are given.
theme?"auto" | "light" | "dark""auto""auto" follows data-theme="dark" (or .dark) on the html element. The kit draws dark by default and has a light palette.
children?ReactNodeYour own figure, built from Plate, IsoSvg, Solid, Line, Wire, Dots and FaceText (exported from this file) and the isoKit geometry.

When to use

Docs, landing and feature sections that explain how a technical thing works (a cache, a rate limiter, a queue, a button's physics) with a crafted, solid object people can press, drag or hover, plus a live readout. Also the kit when I want my own isometric machine with shading, halos, wires and a framed plate.

When not to use

Calm decorative line art for empty states or small cards (use hairline-figure); data that must be read precisely (use a chart); dense app screens where a large interactive figure competes with the task.

Related

Hairline figure · Layer stack · Empty state