react-progress-icons
v1.0.3
Published
React icons for task progress visualization
Readme
React Progress Icons
A collection of beautiful progress indicators component to use in your React projects.
Installation
npm install react-progress-iconsUsage
import { Ring } from 'react-progress-icons';
function MyComponent() {
return <Ring progress={0.75} className="size-8 text-blue-600" />;
}Development
Building the Library
npm run buildLocal Development and Preview
To test and preview your components locally:
- Install dependencies:
npm install- Start the preview development server:
npm run previewThis will start a development server at http://localhost:3000 where you can:
- See your components in action
- Test different props and configurations
- View usage examples
- Interact with the components
Available Scripts
npm run build- Build the library for distributionnpm run dev- Watch mode for library developmentnpm run preview- Start the preview development servernpm run preview:build- Build the preview for productionnpm run preview:preview- Preview the built preview
Components
Ring
A circular progress indicator.
Props
progress(number, required): Progress value between 0 and 1className(string, optional): Pass tailwind classes to the ring to control size and color. If color is not passed it'll inherit the color from the parent.thickness(string, optional): Thickness of the ring (thin, medium, thick)
Example
<Ring
progress={0.75}
className="size-12 text-blue-600"
thickness="thin"
/>License
MIT
