components/button
@fungi.computer/caps / components/button
components/button
Section titled “components/button”Type Aliases
Section titled “Type Aliases”ButtonVariant
Section titled “ButtonVariant”ButtonVariant =
"primary"|"secondary"|"accent"|"destructive"|"outline"|"ghost"|"link"
Supported Button visual variants.
ButtonSize
Section titled “ButtonSize”ButtonSize =
"xs"|"sm"|"default"|"lg"|"icon"
Supported ButtonSize values.
ButtonProps
Section titled “ButtonProps”ButtonProps =
object&ButtonHTMLAttributes<HTMLButtonElement>>
Props accepted by Button.
Type Declaration
Section titled “Type Declaration”asChild?
Section titled “asChild?”
optionalasChild?:boolean
loading?
Section titled “loading?”
optionalloading?:boolean
optionalsize?:ButtonSize
variant?
Section titled “variant?”
optionalvariant?:ButtonVariant
ButtonElement
Section titled “ButtonElement”ButtonElement =
ElementRef<"button">>
The native element type used by Button.
Variables
Section titled “Variables”Button
Section titled “Button”
constButton:ForwardRefExoticComponent<object&ButtonHTMLAttributes<HTMLButtonElement> > &RefAttributes<HTMLButtonElement>>>>
A reusable button with caller-controlled native behavior and intrinsic loading presentation.