Skip to main contentSkip to navigation

How tall a control stands — eight named rungs, and the floor a target may not go under.

Loading...

Usage

import { reach, floor } from '@luxfi/ui/material'
<Button height={reach.plain}>Swap</Button>

Rungs

RungPxStands under
reach.mark20A glyph that is not a target — a keycap, a badge, a mark beside a word
reach.dense28Inline with running text: a link, a chip, a filter, the line you open a fold by
reach.card32A control belonging to a card — its tab row, the cog beside it
reach.band34A control belonging to the application header rather than a screen
reach.plain40The ordinary control: a button, a picker, a field, a row in a list
reach.lead48A control that stands on its own rather than in a row
reach.major52The one action a screen is for
reach.tile88A control that is a tile: a drawing over a word, the whole square the target

Reach is the union of the eight values. floor is 24 — the least a target may be, which is not a rung: a mark is drawn at reach.mark and pressed at floor.