Skip to content
ArcadiaDesign

TSX

A head that counts, then a line per step. Each line is a Collapsible with step: its verb in --text-3, its object a rank up in --text-2, and its figure a small step after them in --text-3 with tabular figures, in the line's own text style. A figure reads with its words, never in a column at the far edge; in a narrow column the object fades and the figure stays whole. A failed step says so in its verb ("Couldn't read") and nothing is struck through.

Steps sets the lines --space-6 in from their head with no guide and no box. A line's mark (a state, a page's glyph) hangs in that indent, so the words keep one edge. A StepLine with href is a link row: the title as its label, the host as its figure after it, the row's fill under the pointer and no underline.

Examples

A plan

To-dos as lines: the check, the live line, the hollow ring and the cross hang in the indent, and a done one keeps its words whole in the quieter ink.

Read the existing math helpers
Add clamp and lerp
Cover them with tests
Document them in the README Dropped

On the head's edge

indent={false} keeps steps that have no head on the column's own edge, each figure still beside its words.

Ran Math tests exit 1
Edited src/math.ts +10

rootStyle takes layout and the indent and gap, each a space token.

--steps-indent
Ref<Space> | "0px"Default var(--space-6)
The lines' start, in from the head's: a line's mark hangs in it.
--steps-gap
Ref<Space> | "0px"Default var(--space-1)
Between two lines.

Each line reads as its words in order: the verb, the object, then the figure. A Collapsible line is a disclosure button; a link row is a real link, reached by Tab and opened with Enter, with the neutral focus ring inside its fill. Marks are hidden from assistive tech: say a state the verb does not already say in the words.

Steps

indent
booleanDefault true
Under a head: the lines start --space-6 in, with no guide and no box. false: on the head's own edge.
rootStyle
RootStyle<StepsKnobs>

Rest props go to HTMLAttributes<HTMLDivElement>.

verb
string
The verb before it, quiet ("Read", "Searched").
mark
IconName | ReactNode
An icon's name or an element, hung in the indent before the text edge (the state's mark, a page's glyph).
figure
ReactNode
What the step came to ("4 results", "github.com", a time): a small step after the words, never cut; the words give way.
href
string
The line is a link: it opens href, takes the row's fill under the pointer, and draws no underline.
target
string
Where the link opens (_blank adds rel="noreferrer").
live
booleanDefault false
Running now: the words shimmer.
tone
"default" | "quiet"Default "default"
quiet: done or not started, the object steps down to the verb's ink.
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).
childrenrequired
ReactNode
The object: a page's title, a to-do, a path. A rank over the verb; its end fades first.

Rest props go to HTMLAttributes<HTMLElement>.