<Button>Button</Button>npx shadcn@latest add @dotui/buttonButton allow users to initiate an action or command with mouse, touch or keyboard interaction.
The button's label indicates the purpose of the action to the user. You may also include an icon for additional context.
import { Button } from "@dotui/registry/ui/button";<Button>Button</Button>Use the controls below to experiment with different button props and see the live preview and code update.
The visual style of the button (Vanilla CSS implementation specific).
"link" | "danger" | "warning" | "default" | "primary" | "quiet"The size of the button.
"sm" | "md" | "lg"<Button>Button</Button>A clickable element that triggers an action. Buttons communicate actions users can take and allow users to interact with the page.
| Prop | Type | Default | |
|---|---|---|---|
union | 'default' | ||
"sm" | "md" | "lg" | "md" | ||
"default" | "square" | "auto" | "auto" | ||
boolean | — | ||
boolean | — | ||
ReactNode | function | — | ||
| Prop | Type | Default | |
|---|---|---|---|
union | "default" | ||
"sm" | "md" | "lg" | "md" | ||
"default" | "square" | "auto" | "auto" | ||
boolean | — | ||
ReactNode | function | — | ||
Last updated on 1/13/2026
Bringing singularity to the web.
Built with passion by @mehdibha.