A customizable Button component built with Radix UI and Tailwind CSS
npm install @tushar80078/button-componentA customizable Button component built with Radix UI and Tailwind CSS.
``bash`
npm install @your-username/button-component
`tsx
import { Button } from '@your-username/button-component';
function App() {
return (
);
}
`
- variant: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link"size
- : "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg"asChild`: boolean - Compose with Radix UI Slot
-
- All standard button HTML attributes
This component requires:
- React 18+ or 19+
- Tailwind CSS configured in your project
MIT