Skip to content

Button

API reference and demos for Button.

Source

import { Button } from "@flanksource/clicky-ui/components";
Default · Open in Storybook
Destructive · Open in Storybook
Outline · Open in Storybook

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 — —