Buttons allow users to perform actions and choose with a single tap.
import { Button } from 'sveltekev';
ATTRIBUTE | TYPE | DEFAULT |
---|---|---|
size | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | md |
radius | 'none' | 'sm' | 'md' | 'lg' | 'full' | none |
color | 'black' | 'white' | 'gray' | 'none' | 'default' | 'primary' | 'secondary' | 'success' | 'warning'| 'danger' | default |
shadow | 0 | 1 | 2 | 3 | 0 |
onClick | () => void | null |