Button

Displays a button or a component that looks like a button.

<Button>Button</Button>

Installation

npx shadcn@latest add @dotui/button

Usage

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

Playground

Use the controls below to experiment with different button props and see the live preview and code update.

variant
size
<Button>Button</Button>

API Reference

Button

A clickable element that triggers an action. Buttons communicate actions users can take and allow users to interact with the page.

PropType
union
"sm" | "md" | "lg"
"default" | "square" | "auto"
boolean
boolean
ReactNode | function
DOMRenderFunction<"button", ButtonRenderProps>

LinkButton

PropType
union
"sm" | "md" | "lg"
"default" | "square" | "auto"
boolean
ReactNode | function
union

Last updated on 1/14/2026

Built with passion by @mehdibha.