Documentation

Asgard

Getting started

Theming

Guides

Layout

Docking

Inputs & forms

Button

Switch

Checkbox

Radio

Select

Slider

TextBox

Upload

ImageCropper

Pickers

Color picker

Calendar

Time picker

DateTime input

Data display

Card

Accordion

Typography

Progress

DataTable

TreeView

SyntaxColor

MarkdownRenderer

Terminal

Layout & docking

Grid

Splitter

SDiv

Dock

Theme switcher

Media query

Feedback & overlays

Alert

Toast

Tooltip

Popups

Drawer

FloatingPanel

FloatingWindow

Navigation & chrome

Breadcrumb

Stepper

Toolbar

Ribbon

ContextMenu

FeatureTour

Documentation

Asgard

Getting started

Theming

Guides

Layout

Docking

Inputs & forms

Button

Switch

Checkbox

Radio

Select

Slider

TextBox

Upload

ImageCropper

Pickers

Color picker

Calendar

Time picker

DateTime input

Data display

Card

Accordion

Typography

Progress

DataTable

TreeView

SyntaxColor

MarkdownRenderer

Terminal

Layout & docking

Grid

Splitter

SDiv

Dock

Theme switcher

Media query

Feedback & overlays

Alert

Toast

Tooltip

Popups

Drawer

FloatingPanel

FloatingWindow

Navigation & chrome

Breadcrumb

Stepper

Toolbar

Ribbon

ContextMenu

FeatureTour

Inputs & forms

Trigger an action or navigation.

A versatile button component supporting multiple visual variants (filled, outlined, ghost, link), semantic color types, and three sizes.

Key features:

  • Left/right icons with leftIcon and rightIcon props
  • Loading spinners and disabled states
  • IconButton for badge overlays
  • ToggleButton for on/off states
  • ButtonGroup for merged, radio, or toggle grouping
Loading preview…
When to use it
  • The single primary action on a page or in a dialog
  • Secondary actions next to a primary one (Cancel, Back)
  • Compact toolbars and inline row actions (ghost / link)
  • Actions with a leading or trailing icon (New, Upload, Next)
  • Icon-only buttons and loading / busy states
Properties
PropTypeDefaultDescription
variant'filled' | 'outlined' | 'ghost' | 'link''filled'Visual style of the button
type'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info''primary'Semantic color type
size'small' | 'normal' | 'large''normal'Button size
leftIconReactNodeIcon rendered before the label
rightIconReactNodeIcon rendered after the label
iconOnlybooleanfalseRender as a square icon-only button
loadingbooleanfalseShow a loading spinner and disable interaction
disabledbooleanfalseDisable the button
activebooleanfalseForce the active/pressed visual state
fullWidthbooleanfalseStretch to fill parent width
minWidthnumberMinimum width in pixels
onClick(e: MouseEvent) => voidClick handler
htmlType'button' | 'submit' | 'reset''button'HTML button type attribute
Notes
  • ButtonGroup supports mode="radio" (single) and mode="toggle" (multi) selection.
  • IconButton accepts a badge prop for notification counts.
  • Set iconOnly with a title prop for accessible icon buttons.
Presets