Components/Button

Search documentation

Jump to any guide or component.

↑↓ move · Enter open · Esc close

Foundations · Button

SSR NativeAccessible

Button

Triggers actions with clear hierarchy, density, and loading states.

Live previewv0.1.4
Astro
---
import { Button } from '@charvesta/cetha';
---

<Button variant="primary">Create workspace</Button>

API reference

PropTypeDefaultDescription
variant'primary' | 'secondary' | 'ghost' | 'danger''secondary'Controls action emphasis.
size'sm' | 'md' | 'lg''md'Sets the 32, 36, or 40 pixel control height.
loadingbooleanfalseDisables the button and shows progress.
classstringAdditional classes forwarded to the rendered element.

Accessibility

Loading state sets aria-busy and disables repeated activation while retaining the label.