Docs
Button

Button

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

Installation

Usage

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

You can use the buttonVariants helper to create a link that looks like a button.

import { buttonVariants } from "@/components/ui/button";
<A class={buttonVariants({ variant: "outline" })}>Click here</A>

Alternatively, you can set the asChild parameter and nest the link component.

<Button asChild>
  <As component={A} href="#">
    Login
  </As>
</Button>

Examples

Secondary

Destructive

Outline

Ghost

With Icon

Loading

As