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.
Usage
import { Button, ButtonLink } from "@kuori/ui/button";<Button label="Open Kuori" />Button Properties
labelRequiredstringvariant'primary''secondary''ghost'primarysize'md''lg'mdleadingIconIconNametrailingIconIconNamefullWidthbooleanfalseclassNamestringtype'button''submit''reset'buttondisabledbooleanfalse...propsButtonHTMLAttributesButtonLink Properties
hrefRequiredstringlabelRequiredstringvariant'primary''secondary''ghost'primarysize'md''lg'mdleadingIconIconNametrailingIconIconNamefullWidthbooleanfalseclassNamestring...propsAnchorHTMLAttributes