Forspring ui

Buttons

Every button the package draws, at rest and with the keyboard's focus ring, measured in your browser against the tokens for its size. A value off its size is marked ≠. Hover any of them to see its hover.

The sizes

Every variant and state
VariantAt restFocus ringBoxTypePaintRing
Actions, default size
Primary
default
Primary, a link
default
Open SiteSpringOpen SiteSpring
Secondary (ghost)
default
Secondary, a link
default
See the changesSee the changes
Destructive
default
Success
default
Warning
default
Critical
default
With an icon
default
Ghost with an icon
default
Hold to confirm
default
Delete siteDelete site
Actions, small size
Primary, small
small
Ghost, small (the theme preview's Use)
small
Destructive, small
small
Icon only, small
icon-small
A notice's action
small
A dialog's trigger, small
small
RenameRename
A bar menu (org, products)
small
Products
Products
A file input's button
small
A toast's Undo
small

Done: The page is archived.

Dismiss

Done: The page is archived.

Dismiss
A toast's close
icon-small

Note: The export has started.

Dismiss

Note: The export has started.

Dismiss
The strip's way out (D-48)
small

You are viewing as a viewer.

Stop viewing as

You are viewing as a viewer.

Stop viewing as
Copy (the connect panel)
small
States
Working (D-53)
default
Done (D-53)
default
Unavailable until the name is typed (D-23)
a live button in muted words: pressing it says what is missing
default
Shapes of their own
A removable tag's x
tag-x
ChefChef
A filter chip
filter
Overdue 3Overdue 3
Continue with Google
google

In a row

A form's actions (D-69): one row, the primary first, the destructive one at the end, wrapping only when there is no room.

Products draw these with @forspring/ui's classes and helpers; a product's own button is held to the same sizes by ui-audit's control rules.