One contract: Button
Loom Base 1.0.0, MIT
- Purpose
- Starts an action in the current view: save, publish, open a dialog, run a check.
- When not to use it
- Going to another page or URL: use Link.
- Choosing one of several options: use RadioGroup or Select.
- States
- idle (PRESS); flags: disabled, busy
- Keyboard and role
- Enter, Space, Tab ยท role
button, the same on native
- Tested behaviour
- 13 scenarios, run on web and native from this one file
Three of its 36 tokens, resolved from the component to the value| Component token | Resolves through | Value |
|---|
root.background@tone=primary | semanticcolor.action.primary.background | primitivecolor.palette.greige.900 | #17140f |
|---|
root.color@tone=primary | semanticcolor.action.primary.text | primitivecolor.palette.greige.0 | #fbf8f1 |
|---|
root.min-height | semanticsize.control.md | primitivesize.scale.40 | 40px |
|---|