button
Triggers an action with COSS-style variants, sizes, icons, and loading state.
Preview
The loading state keeps an icon-library placeholder in the source package and resolves to a real spinner when installed.
Preview is scoped to System Baseline — the shell chrome around it wears coss's theme.
Usage
# shadcn-style install from raya's registry npx shadcn@latest add @raya/button # or by URL npx shadcn@latest add https://raya.alfrizk.dev/r/button.json
Tokens in use
--background
--foreground
--card
--primary
--secondary
--muted
--accent
--border
API
- variant
- variant · size
- size
- System defaults with component-level overrides where declared.
- props
- Base UI composition props plus the component’s native React attributes.