A push button drawn as an Aqua gel pill: blue default, clear secondary, red destructive, plus outline bezel, ghost toolbar, link, brushed-metal and iOS bar-button variants with instant 0ms press states.
Installation
Requires the theme. Register the @skeuomorph namespace and add @skeuomorph/skeuomorph first, as shown in the installation guide. The CLI also pulls it in as a dependency.
Without the namespace, install straight from the URL:
Usage
import { Button } from "@/components/ui/button"<Button variant="outline">Button</Button>Examples
Size
Default
Outline
Secondary
Ghost
Destructive
Link
iOS
A bar button for navigation bars and toolbars, drawn for a dark tinted bar.
<Button variant="ios">Save</Button>Metal
The brushed-metal keycap of textured windows.
<Button variant="metal">Burn</Button>Recessed
Scope-bar buttons. Mark the selected one with aria-pressed (or data-state="on").
<Button variant="recessed" aria-pressed={selected}>
Contents
</Button>Pulse
pulse makes a default button throb like the default button of an Aqua dialog. Use it on one button per window. The animation stops when prefers-reduced-motion is set.
<Button pulse>Save</Button>Icon
With Icon
Rounded
Spinner
As Child
Use asChild to give a link the look of a button.