Imagine ArtImagine Art

Triggers actions like form submission, navigation, or confirmation dialogs.

Actions

Import

import { Button } from "@/components/ui"

API

PropTypeDefaultDescription
variant"primary" | "secondary" | "outline" | "ghost" | "brand" | "error" | "success" | "warning" | "link""primary"Visual style of the button.
size"xs" | "sm" | "md" | "lg" | "xl""md"Controls height, padding, and font size.
shape"pill" | "rect""pill"Border radius shape.
iconOnlybooleanRenders as a square icon button.
leftIconReactNodeIcon rendered before the label.
rightIconReactNodeIcon rendered after the label.
loadingbooleanShows a spinner and disables interaction.

Examples