Button

The Button component is the most basic user interaction component, supporting multiple styles and states.

Buttons are used to trigger actions or events, such as submitting forms, opening dialogs, canceling operations, or performing delete operations.

Button Variants

Supports four variants: Primary, Secondary, Ghost, and Danger.

Disabled State

Buttons can be disabled, in which case they are not clickable.

Icon Button Sizes

Icon buttons support three sizes: small (24px), medium (32px), and large (40px).

Icon Button Variants

Icon buttons support five color variants: Ghost, Primary, Secondary, Danger, and Success.

API

Button Props

PropertyDescriptionTypeDefault
variantButton style variantButtonVariantPrimary
sizeButton sizeButtonSizeMedium
disabledWhether disabledboolfalse
childrenButton contentElement-

IconButton Props

PropertyDescriptionTypeDefault
iconIcon to displayMdiIcon-
sizeButton sizeIconButtonSizeLarge
variantColor variantIconButtonVariantGhost
glowEnable glow effectbooltrue
disabledWhether disabledboolfalse
onclickClick handlerEventHandler<MouseEvent>-