linearprogressbar-components
v1.0.0
Published
A collection of reusable React components
Maintainers
Readme
Linear Progress Bar Components
A reusable component library built with React and TypeScript.
Installation
npm install @linearprogressbar/componentsUsage
import { Button, LinearProgressBar } from '@linearprogressbar/components';
function App() {
return (
<>
<Button label="Click me" onClick={() => {}} />
<LinearProgressBar value={50} max={100} />
</>
);
}Structure
Components are organized in the src/components/ directory. Each component should be in its own folder with:
src/
├── components/
│ ├── Button/
│ │ ├── Button.tsx
│ │ ├── Button.css
│ │ └── index.ts
│ ├── LinearProgressBar/
│ │ ├── LinearProgressBar.tsx
│ │ ├── LinearProgressBar.css
│ │ └── index.ts
│ └── ...
└── index.tsAdding a New Component
- Create a new folder in
src/components/ - Create your component file (e.g.,
MyComponent.tsx) - Create an
index.tsthat exports the component - Add the export to the main
src/index.ts
Publishing
npm run build
npm publishLicense
MIT
