Docs
Button
Button
Displays a button or a component that looks like a button.
Installation
npx @pujan-modha/pm-ui add button
Usage
import { Button } from "@/components/ui/button"
<Button>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: "default" })}>Click here</Link>
Alternatively, you can set the asChild
parameter and nest the link component.
<Button asChild>
<Link href="/login">Login</Link>
</Button>