Button

Button is used to trigger some actions.

Features

  • Native HTML <button> element support.
  • <a> and custom element type support via the WAI ARIA Button design pattern.
  • Keyboard event support for Space and Enter keys.

Install

Import

API

Button

Props Type Default
as
AsTag | Component
button
asChild
boolean
false
disabled
boolean
false
Event Type
click
[_event: MouseEvent]
Data attribute Value
[data-disabled]
Present when disabled