Loading...
Installation
npx @hanzo/ui@latest add buttonUsage
import { Button } from "@/components/ui/button"<Button variant="outline">Button</Button>Link
You can use the buttonVariants helper to create a link that looks like a button.
import { buttonVariants } from "@/components/ui/button"<Link 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
Loading...
Secondary
Loading...
Destructive
Loading...
Outline
Loading...
Ghost
Loading...
Link
Loading...
Icon
Loading...
With Icon
Loading...
Loading
Loading...
As Child
Loading...