C
Cassa UI

Button

Core interactive element from @cassa/ui. Four visual variants, five sizes, and a built-in loading state.

Import

import { Button } from '@cassa/ui'

Variants

Sizes

Loading state

Disabled

Props

PropTypeDefaultDescription
variant"primary" | "secondary" | "ghost" | "destructive""primary"Visual style.
size"xs" | "sm" | "md" | "lg" | "xl""md"Controls height and horizontal padding.
loadingbooleanfalseShows a spinner and disables the button.
disabledbooleanfalseDisables the button. Set automatically when loading.
classNamestringExtended via tailwind-merge.
...propsReact.ButtonHTMLAttributesAll native button attributes.