Forms
Button
Triggers an action. Six variants and four sizes, with icon, loading and disabled states.
Group: Forms. Exports: Button, IconButton, LinkButton. shadcn/ui equivalent: Button (matches).
Usage
import { Button } from "./halaska-kit";
Button props
childrenReactNode: Content.variantstring(default "primary"): Visual variant.sizestring(default "md"): Size of the control.iconReactNode: Icon shown before the content.iconRightReactNode:disabledboolean: Prevents interaction and dims the control.loadingboolean: Shows a spinner and blocks clicks.fullWidthboolean:onClick() => void: Called on click.styleCSSProperties: Inline style merged onto the root element.typeany:"aria-label"any:"aria-expanded"any:"aria-haspopup"any:"aria-describedby"any:
IconButton props
iconReactNode: Icon shown before the content.sizenumber(default 36): Size of the control.variantstring(default "ghost"): Visual variant.onClick() => void: Called on click.labelstring: Visible label.styleCSSProperties: Inline style merged onto the root element."aria-expanded"any:"aria-haspopup"any:"aria-describedby"any:
LinkButton props
childrenReactNode: Content.onClick() => void: Called on click.iconReactNode: Icon shown before the content.iconRightReactNode:sizestring(default "md"): Size of the control.styleCSSProperties: Inline style merged onto the root element.
Accessibility
- Renders a native button, so Enter and Space activate it.
- Passes through type, aria-label, aria-expanded and aria-haspopup, and sets aria-busy while loading.
- IconButton takes a label prop that becomes its accessible name.
- Focus is shown with a visible ring for keyboard users only.
Used in
chat screen, canvas screen, Confidence states, Recommendation, Feedback capture, Plan preview, Approval card, Agent status, Task rows, Handoff, Checkpoints, Error repair, Diff view, Diff table, Insight cards, Inline assist, Nudge, Digest, Agent setup
Halaska UI · Components · Patterns · Screens · Install