Expand description
The chrome’s one control vocabulary.
Every pressable thing in the chrome is drawn from here, so a press looks and behaves the same wherever it is made: a 44 px target (the spec’s minimum on every platform), the same hover and press, and a control the session is not offering drawn dead rather than hidden — a hole teaches nothing, and invariant 8 wants the reason on the control itself.
A control is a div, not a <button>: a press hands the chrome neither
the focus nor a ring to show it, so the keyboard stays the drawing’s.
The hover text is a title, not a floating element: a withheld control
must still say why it is withheld, and the browser’s own tooltip does.
Re-exports§
pub use Press_completions::Component::Press;pub use Pressable_completions::Component::Pressable;pub use Face_completions::Component::Face;
Structs§
- Face
Props - Properties for the
Facecomponent. - Press
Props - Properties for the
Presscomponent. - Pressable
Props - Properties for the
Pressablecomponent.
Enums§
- Pressing
- Whether a control answers a press.
Constants§
- ARMED
- The armed cell, which is the only filled control in the chrome.
- CELL
- One cell of the floating rail: larger than a bar button, and the one place a control is drawn filled while it is armed.
- TAP
- A 44 px icon target, as the top bar and the overlay wear it.