@parth-patel-25/simple-button
v0.1.0
Published
A simple, reusable React Button component library built with TypeScript and Vite.
Readme
Simple Button Library
A minimal, reusable React Button component library built with TypeScript and Vite.
Install
npm install @your-scope/simple-button
# or
yarn add @your-scope/simple-button
# or
pnpm add @your-scope/simple-buttonUsage
import * as React from "react";
import { Button } from "@your-scope/simple-button";
export function App() {
return (
<div>
<Button variant="primary" size="md" onClick={() => alert("Clicked!")}>
Click me
</Button>
</div>
);
}Props
- variant:
"primary" | "secondary" | "ghost"(default:"primary") - size:
"sm" | "md" | "lg"(default:"md") - Inherits all standard
buttonattributes.
Development
npm run dev: local playground (if you add one)npm run build: builds library todist/with.d.tstypes
See GUIDE.txt for full publishing instructions.
License
MIT
