Button
The action trigger, in four sizes, a tone and a variant.
Sizes
Four sizes, tiny to large; the default fits most
rows.
Tones
tone says what a click does: the base for most actions, primary for
the one the view is for, danger for what cannot be undone. The status tones match
a message's severity.
Variants
variant sets the weight: solid by default, outlined and text quieter,
link inline with prose.
Modifiers
rounded, hoverable and full adjust the
shape, the hover and the width.
Labels and icons
children also takes a string, for buttons built from data at
runtime. An icon sits before the label; in a fixed-width button, a growing
label pushes it to an end. A button with only an icon takes an aria-label for its name.
States
disabled blocks the click; inactive only looks it
and stays clickable; aria-checked makes it a toggle.
Links
With href the button renders as a link, inside or out.
Examples
full fills its container.
In a fixed width, the growing label pushes the icon out.
Each is named by its aria-label.