Skip to content

Button

Common action button with multiple types, sizes, and shapes.

Basic Usage

loading

Type

Besides default: primary, secondary, accent, success, warning, danger, info, neo, pink, purple, blue, orange, green.

Variant

  • solid (default): Filled
  • outline: Outlined
  • ghost: Transparent background
loading

Size

xs, sm, md, lg, xl.

loading

Shape

  • default: Default radius
  • round: More rounded
  • circle: Circular (often with icon)
  • sharp: Square corners
loading

Disabled & Loading

loading

Block

loading

Set href to render the button as a link. Use target="_blank" to open in a new tab.

loading

API

PropDescriptionTypeDefault
typeTypestring'primary'
variantVariant'solid' | 'outline' | 'ghost' | 'soft''solid'
sizeSize'xs' | 'sm' | 'md' | 'lg' | 'xl''md'
shapeShape'default' | 'round' | 'circle' | 'sharp''default'
disabledDisabledbooleanfalse
loadingLoadingbooleanfalse
blockBlockbooleanfalse
hrefLink URL (when rendered as anchor)string-
targetLink target, e.g. _blankstring-

Events

EventDescription
clickEmitted on click

MIT License