Skip to content

The Kit ​

Tidemark builds every widget on its site from the pieces the workspace package under docs/kit/ exports as @tidemark/kit, through one entry for the controls a reader works a widget through, one for the chrome a widget sets around what it draws, one for the gate every moving drawing passes, and one for the helpers that write a drawing's markup and the curves its motion takes, so a new widget takes one of these pieces before writing its own. Each entry declares its pieces once, in the pieces.json beside its code, naming when a widget reaches for each, what it stands in place of, and the examples it is set out in. The source of every piece follows, written by mise run docs:render from those declarations.

Back and Next walk the whole kit one piece at a time, and the scene above the card changes as the walk crosses into each part of it. Point at a dot or a piece to read it, and press it to walk there.

1 of 22 · Controls
Radius20 km
Ring
Toronto on Cararra
1 of 4 · Station

Hohonu_tide_Port_Clyde_ME

Zag radio-group
9
modules read it
Choice

A reader picks one of a few options laid out in a row or a grid.

In place of

A row of buttons each toggling its own state, with the radio roles and the arrow keys written by hand.

How it behaves
Three Across

The arrow keys move the pick and the focus along the row and wrap at either end.

Swatches

Home and End take the first and the last, and only the picked tile sits in the tab order.

To take it up
import { Choice, landing } from '@tidemark/kit/controls'
Commit47945eaDataschedule.jsonUnreleased1.2.0