@manhphi1309/button
v0.3.4
Published
A beautifully designed, accessible button component for your React application.
Readme
@manhphi1309/button
A beautifully designed, accessible button component for your React application.
Subcomponents
This package provides the following components and utilities:
ButtonbuttonVariants
Dependencies
This package relies on:
@manhphi1309/utilsclass-variance-authorityclsxradix-uitailwind-merge
Installation
npm install @manhphi1309/buttonUsage Example
import { Button } from "@manhphi1309/button"
export default function Example() {
return (
<div className="flex gap-4">
<Button variant="default" size="default">
Primary Button
</Button>
<Button variant="outline" size="sm">
Outline Small
</Button>
<Button variant="destructive" size="lg">
Destructive Large
</Button>
</div>
)
}