Button

Three variants, one per job, in two sizes. Primary is ink, not brand, so the accent stays rare.

Variants

primary is the one main action on a screen, secondary is for alternatives and ghost is for quiet actions like Cancel. The default is primary.

Sizes

md is 34 tall, for toolbars, the reply box and inline actions. lg is 38 tall, for forms, where it lines up with Input sm. The default is md.

Icons

leadingIcon and trailingIcon take any Kuori icon name. Use opens-elsewhere when the action leaves Kuori and next-step when the next step stays inside it.

States

Hover is instant. Only the press animates, scaling to 0.97. disabled uses fill/disabled with text/disabled in every variant.

Links

ButtonLink looks the same but renders a link, for moving between pages and between the Kuori sites.

Every theme

fill/primary flips between near black and near white, so the label is always text/inverse. Never text/on-accent, which disappears on a dark theme.

Glass Dark
Alex MorganLaunch plan review moved to ThursdayWork
Glass Light
Alex MorganLaunch plan review moved to ThursdayWork
Dark
Alex MorganLaunch plan review moved to ThursdayWork
Light
Alex MorganLaunch plan review moved to ThursdayWork
Dim
Alex MorganLaunch plan review moved to ThursdayWork
Paper
Alex MorganLaunch plan review moved to ThursdayWork
Pink
Alex MorganLaunch plan review moved to ThursdayWork

Usage

import { Button, ButtonLink } from "@kuori/ui/button";
<Button label="Open Kuori" />

Button Properties

PropTypeDescription
labelRequired
string
The text on the button. Starts with a verb, in sentence case
variant
'primary''secondary''ghost'
Primary for the one main action, secondary for alternatives, ghost for quiet actionsDefault: primary
size
'md''lg'
md (34 tall) for toolbars and inline actions, lg (38 tall) for formsDefault: md
leadingIcon
IconName
A Kuori icon before the label, at 16px
trailingIcon
IconName
A Kuori icon after the label: opens-elsewhere when it leaves Kuori, next-step when it stays
fullWidth
boolean
Fill the container, as buttons do in formsDefault: false
className
string
Additional CSS classes to apply to the button
type
'button''submit''reset'
The native button typeDefault: button
disabled
boolean
fill/disabled with text/disabled, and no pressDefault: false
...props
ButtonHTMLAttributes
Anything else, like onClick or aria-label, goes to the underlying button

ButtonLink Properties

PropTypeDescription
hrefRequired
string
Where the link goes, inside Kuori or to another site
labelRequired
string
The text on the button. Starts with a verb, in sentence case
variant
'primary''secondary''ghost'
Primary for the one main action, secondary for alternatives, ghost for quiet actionsDefault: primary
size
'md''lg'
md (34 tall) for toolbars and inline actions, lg (38 tall) for formsDefault: md
leadingIcon
IconName
A Kuori icon before the label, at 16px
trailingIcon
IconName
A Kuori icon after the label: opens-elsewhere when it leaves Kuori, next-step when it stays
fullWidth
boolean
Fill the container, as buttons do in formsDefault: false
className
string
Additional CSS classes to apply to the button
...props
AnchorHTMLAttributes
Anything else, like target or download, goes to the underlying link