Button
API reference and demos for Button.
Import
Section titled “Import”import { Button } from "@flanksource/clicky-ui/components";The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
asChild |
boolean |
false |
Render the button styles onto the child element via Radix Slot. |
loading |
boolean |
false |
Show a spinner and disable the button while an action is pending. |
loadingLabel |
ReactNode |
— | Label to render while loading; defaults to the normal children. |
size |
"sm" | "lg" | "default" | "icon" | null |
— | — |
variant |
"default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null |
— | — |