A simple and customizable React loader component
npm install cb-react-smart-loaderbash
npm install cb-react-smart-loader
`
$3
`bash
npm install cb-react-smart-loader --legacy-peer-deps
`
---
🚀 Quick Start
$3
`js
import SmartLoader from "cb-react-smart-loader";
`
---
$3
`jsx
import React from "react";
import SmartLoader from "cb-react-smart-loader";
const App = () => {
return (
{/ Default Loader /}
{/ Large loader with red color /}
{/ /}
{/ Small loader with custom green color /}
);
};
export default App;
`
---
⚙️ Props
| Prop | Type | Default | Description |
| ----- | ------ | ------- | ------------------------------ |
| size | string | md | Loader size (sm, md, lg) |
| color | string | #000 | Loader color (any CSS color) |
---
📐 Available Sizes
* sm – Small
* md – Medium (default)
* lg – Large
$3
`jsx
``