Buttons

The shared Button in all its variants, sizes and states, the Icon button sizes, and the buttons built outside it.

Button

packages/ui/src/components/button.tsx

6 variants × 5 sizes. Used in 49 files. Every size is at least 40 px high (44 px for default and icon) for touch targets.

variant \ sizedefaultsmlgiconicon-sm
default
outline
secondary
ghost
destructive
link

States, per variant (size default)

variant \ stateDefaultHoverFocusPressedDisabledErrorLoading
default
outline
secondary
ghost
destructive
link

Loading is how the app shows it: the button disabled, with a Spinner and an “…ing” label (e.g. claim-button.tsx, totp-setup.tsx). Pressed shifts the button down 1 px.

As a link (asChild)

Browse the catalogueasChild + next/link, e.g. “Browse the catalogue”
Next 25asChild, variant outline, e.g. “Next 25” in Newsrooms
With a trailing icon, e.g. “Go to Gatekeep”

Icon button

packages/ui/src/components/button.tsx (size icon, icon-sm)

No separate component: Button with size “icon” (44 px) or “icon-sm” (40 px) and an icon child.

size icon · outline
size icon · ghost · hover
size icon-sm · default
size icon-sm · disabled

Copy button

apps/web/components/copy-button.tsx

Button variant outline with an icon and a live label; shows “Copied” for 2 s after a click.

Idle
Hover
Copied (state after click; JSX of the copied branch)

Buttons outside the shared ButtonAd-hoc

Native buttons with their own classes. They don't follow the Button sizes, radius or focus ring.

apps/web/features/member-discount/components/star-button.tsx · empty, filled, selected, disabled
Menu
apps/web/components/mobile-nav.tsx · <summary> of a native <details>, styled as an icon button (shown below 768 px)