Button

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

Usage

import { Button } from "@bigcomponents/core";
<Button variant="outline">Button</Button>

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

import { buttonVariants } from "@bigcomponents/core";
<Link href="/" className={buttonVariants({ variant: "outline" })}>
  Click here
</Link>

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

<Button asChild>
  <Link href="/login">Login</Link>
</Button>

Examples

Primary

Secondary

Destructive

Outline

Ghost

Icon

Loading...

With Icon

Loading...

Loading

Loading...

As Child