Button Component
Button Component
Section titled “Button Component”The Button component provides a flexible, accessible button implementation with full theme integration and multiple style variants.
Interactive Demo
Section titled “Interactive Demo”Features
Section titled “Features”- Theme Integration: Fully integrated with the Sparkle theme system
- Accessibility: WCAG 2.1 AA compliant with proper focus management
- Multiple Variants: Primary, secondary, outline, and ghost styles
- Size Options: Small, medium, and large sizes
- Interactive States: Hover, focus, active, and disabled states
Component API
Section titled “Component API”The Button component accepts all standard HTML button props plus additional styling props.
import {Button} from '@sparkle/ui'
export function MyComponent() { return ( <Button variant="primary" size="md"> Click me </Button> )}