Illustration
Product spot illustrations that answer the pointer: lift for a list or a set, magnify for a field of things, sequence for steps that run in order. Ten drawings, recoloured by whichever brand they sit in.
{/* Generated by scripts/build-component-docs.mjs — do not edit. The source is the component folder: guidance.json, the doc block and the props. Change those. */}
Product spot illustrations that answer the pointer: lift for a list or a set, magnify for a field of things, sequence for steps that run in order. Ten drawings, recoloured by whichever brand they sit in.
Import
import { alertAt, resultAt, widgetAt, magnify, Illustration } from "@ir/ui";Watch out
- Two deliberate differences from the Spotkit files. The colours are Picasso semantics, not the
--il-*preset, so the hairline isborder/neutral/emphasisand the bars arebg/layer/emphasis— one step off the preset's in-between greys. And the glyphs are Lucide, not Phosphor, because Lucide is the only icon library here.
Props
| Prop | Type | Required | What it does |
|---|---|---|---|
name | IllustrationName | yes | Which drawing. Each has one mechanic; see the component notes. |
label | string | null | What the picture shows, read by screen readers. null hides it from assistive tech — use it when a heading beside it says the same thing. | |
interactive | boolean | Answer the pointer. Turn off where the picture sits inside the product (an empty state) and should stay still. | |
active | boolean | Let a parent drive the response instead of the pointer — a list card that owns the hover for the whole card. When set, the picture stops listening: true plays the response (lift opens the next item, magnify swells around the flagged shape, sequence runs), false holds it at rest. Leave it unset for a picture that answers the pointer itself. |
Do and don't
Keep the flat Spotkit drawing and give it one of the three mechanics.
Don't — Borrow another product's isometric or 3D drawing style to make a figure feel alive.
What makes a figure feel alive is that it answers the pointer, not how it is drawn. IR's illustration rule excludes isometric and 3D art, and the mechanics carry across without it.
Move the one accent: the open alert, the nearest endpoint, the check that is running.
Don't — Light several shapes in the accent as the pointer passes, or let them accumulate.
Spotkit allows the accent on two shapes at most. An accent that spreads stops meaning 'this one'.
Listen on a layer that stays put, and work out which shape the pointer is on from where the shapes now are.
Don't — Put the hover handler on the shape that moves.
A shape that slides out from under the pointer ends the hover that moved it, and the figure flickers between two states at every edge.
Say it in the heading and the sentence beside the picture; let the hover only reward a closer look.
Don't — Show something on hover that the page does not say anywhere else.
Nothing in the picture can be reached by keyboard or by touch without a pointer, so anything said only there is said to some people and not others.
Pass interactive={false} in an empty state. In a list card, pass active from the card's own hover so the card drives the picture.
Don't — Leave the hover response on for a picture inside the console — an empty state, a dialog — or let a picture in a card listen to the pointer itself.
Inside the product a thing that moves under the pointer reads as a control. In a list card the card is the control, so the picture answers the card, never the pointer.
Set active after the pointer has rested on the whole card for 120ms, and straight away on :focus-visible. Clear it on leave and blur.
Don't — Set active the moment the pointer enters, or on mouseover of the picture alone.
A pointer crossing a list on its way somewhere else should move nothing. The settle is what separates looking at a card from passing over it.
Set data-brand on the root. The drawing's accent, tint and hairlines are semantics, so they follow the brand's ramp and the neutral's greys.
Don't — Copy a drawing to recolour it for another brand, or pass it a colour.
A brand is a ramp, not a fork. A drawing that needs a colour prop for a new brand is a drawing that has escaped the token system.
Use transition-illustration for anything that slides, the spring constants in illustration.tsx for anything that swells, and step-end for anything that loops.
Don't — Give a new drawing its own duration or easing.
Three figures side by side read as one set because they move alike. A fourth curve is the first thing the eye picks out.
Accessibility
- The picture is role="img" with an aria-label naming the feature. With label={null} it is aria-hidden, for when the heading beside it already says the same thing.
- The response is decoration. Nothing inside the picture is focusable and nothing is conveyed only by it, so a keyboard or screen-reader user misses nothing. In a list card the card takes focus, and focus sets active.
- Under prefers-reduced-motion nothing travels: lift changes state without the slide, magnify moves the accent and leaves the radii alone, and sequence does not run. The drawing at rest already says what it means.
- The glyphs inside are aria-hidden — the label speaks for the whole picture.
Where it is drawn
Illustration page — component set Illustration (node 40000783:32960): Name (ten drawings) × State (Rest, Active). Drawn from code; code is the source of truth