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>

Examples

Default

Variants

Sizes

Shapes

Prefix and Suffix

Loading

Disabled

Login

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
union
ReactNode | function
boolean
boolean
DOMRenderFunction<"button", ButtonRenderProps>

LinkButton

PropType
union
union
ReactNode | function
boolean
union

Last updated on 5/22/2026