Primitive

Button

Three variants, three sizes. Loading state, leading and trailing icons.

Preview

Import

ts
import { Button } from '@gautham/design-system/primitives'

Usage

tsx
<Button variant="solid" size="md">Save</Button>
<Button variant="outline">Cancel</Button>
<Button variant="ghost" size="sm">Learn more</Button>

Props

NameTypeDefaultDescription
variant'solid' | 'outline' | 'ghost''solid'Visual weight.
size'sm' | 'md' | 'lg''md'Pixel height tier.
leadingReactNode—Icon placed before the label.
trailingReactNode—Icon placed after the label.
loadingbooleanfalseSpinner replaces leading icon; button is disabled.

When not to use

Links to other pages: use an anchor styled as a link, not a button. Primary call-to-action on a public marketing page: use a bigger, brand-specific CTA.