Button
Accessible button with variant and size options. Wraps bits-ui Button.
Example
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'primary' | 'accent' | 'danger' | 'ghost' | 'default' | Visual style |
size | 'sm' | 'md' | 'lg' | 'md' | Button size |
class | string | — | Additional CSS classes |
children | Snippet | — | Button content |
Usage
<script>
import { Button } from '@chrissnell/chonky-ui';
</script>
<Button variant="primary" onclick={() => alert('clicked')}>
save
</Button>