Kevin Mendoza

Button

Buttons allow users to perform actions and choose with a single tap.

Import

import { Button } from 'sveltekev';

Size

Radius

Color

Shadow

onClick

API

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