1. Docs
  2. components
  3. Button

Button

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

Installation

Copy and paste the following code into your project.

Update the import paths to match your project setup.

Usage

import { Button } from "~/components/ui/button";
<Button variant="outline">Button</Button>

You can use the LinkButton component to create a link that looks like a button.

import { LinkButton } from "~/components/ui/button";
<LinkButton href="https://github.com/fellipeutaka">GitHub</LinkButton>

Examples

Default


Secondary


Outline


Danger

Ghost

API Reference

PropTypeDefault
variant
enum
"default"
size
enum
"default"
isDisabled
boolean
isPending
boolean
type
enum
"button"