Button
These examples are the published @protokit/ui package rendered on the server by Astro, with no client
JavaScript: a Button is plain HTML and CSS until it needs behaviour.
Variants
Section titled “Variants”Use one primary Button per view for the main action. secondary is for the alternatives beside it, ghost for
low-emphasis actions in dense UI such as toolbars and rows, and danger only for destructive actions.
Every size keeps a 44px touch target on coarse pointers. md is the default.
States
Section titled “States”In the workshop
Section titled “In the workshop”The workshop has the interactive playground and every state, in both themes and densities: Components/Button.