01 · buttonsActions & Primitives5 Variations
Buttons
Accessible interactive trigger primitives spanning high-emphasis solid, crisp outline, low-noise ghost, icon-only controls, and GSAP-choreographed animated buttons.
buttonsactionsctaprimitivesgsap
Solid
buttons/solid
Loading variation buttons/solid...
Component Information
High-contrast filled action trigger with CVA tone/size variants, built-in loading spinner state, and optional full-width layout.
- Variation ID
- buttons/solid
- Motion Engine
- css
- Source File
- src/labs/components/components/buttons/variations/solid.tsx
Reduced Motion & Accessibility
Active press scale and subtle shadow transitions respect OS motion settings.
- Explicit type="button" default prevents unintended form submission.
- Loading state applies aria-busy="true" and native disabled semantics.
Dependencies
- class-variance-authority^0.7.1Required
Type-safe size and tone variant matrix
- lucide-react^0.553.0Required
Loading spinner and trailing arrow indicator
Usage Documentation
import { SolidButton } from '@/src/labs/components/components/buttons';
export function PublishAction() {
return (
<SolidButton tone="accent" size="md">
Deploy Component
</SolidButton>
);
}Props API (6)
| Prop | Type | Default | Description |
|---|---|---|---|
| size | 'sm' | 'md' | 'lg' | 'md' | Button height and horizontal rhythm. |
| tone | 'neutral' | 'accent' | 'danger' | 'accent' | Semantic visual emphasis. |
| fullWidth | boolean | false | Expands trigger to 100% container width. |
| loading | boolean | false | Displays spinner and disables repeated clicks. |
| leadingIcon | ReactNode | — | Optional icon rendered before children. |
| trailingIcon | ReactNode | — | Optional icon rendered after children. |