Skip to content

Button

A button with multiple variants, sizes, and loading state.

<reke-button variant="primary">Save</reke-button>
<reke-button variant="danger" loading>Deleting...</reke-button>
<reke-button variant="icon-only" aria-label="Edit">&#9998;</reke-button>
PropertyTypeDefaultDescription
variant'primary' | 'secondary' | 'ghost' | 'danger' | 'danger-outline' | 'icon-only''primary'Visual variant
size'xs' | 'sm' | 'md' | 'lg''md'Button size
disabledbooleanfalseDisables the button
loadingbooleanfalseShows loading spinner
SlotDescription
defaultButton label
prefixContent before the label
suffixContent after the label
EventDetailDescription
reke-click{}Fired on button click
PartDescription
buttonThe native button element