Lightweight animated React loaders built with Tailwind CSS
npm install sty-loaderbash
npm install sty-loader
`
---
or
---
`bash
yarn add sty-loader
`
š Usage
`bash
import { Spinner } from "sty-loader";
export default function Example() {
return (
);
}
`
$3
| Prop | Type | Default | Description |
| ----------- | ------ | --------- | ---------------------------- |
| size | number | 16 | Size of the loader in pixels |
| color | string | "white" | Color of the spinner |
| className | string | "" | Additional Tailwind classes |
$3
- React >= 17
- Tailwind CSS must be installed and configured
- Tailwind animation utilities (animate-spin) should be enabled (default)
---
$3
`bash
``