Playground

Playground

Change a component's props and see the live result, the code to write it, and the accessibility facts. Nothing here can break; it is only a preview.
Component

Props

variant
size

Button

The one way to start an action. Four variants, three sizes, loading and disabled states.
Code
<Button label="Send money" />

Accessibility, right now

These are measured from the current theme and props, so switch the style or the colour scheme and watch them move.
Role
button
Accessible name
Send money
State
enabled
Label contrast
6.61:1, needs 4.5:1 (passes)
Size
48pt tall; tappable area at least 48pt
Keyboard
Enter or Space; a 2pt focus ring

Tokens it draws from

colors.action.primary
radius.md
controlHeight
depth.control (Soft)
borderWidth.medium (secondary)