
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
spinner-zilla
Advanced tools
A beautiful collection of animated loading spinners for React applications
A comprehensive React spinner library featuring 13 beautiful, customizable loading animations. Built with TypeScript and Tailwind CSS for modern web applications.
# npm
npm install spinner-zilla
# yarn
yarn add spinner-zilla
# pnpm
pnpm add spinner-zilla
This package has the following peer dependencies:
react
: >=16.8.0react-dom
: >=16.8.0tailwindcss
: >=3.0.0// Import the CSS (important!)
import 'spinner-zilla/dist/index.css';
// Import your desired components
import { CircleSpinner, RingSpinner, WaveSpinner } from 'spinner-zilla';
function LoadingState() {
return (
<div className="flex items-center gap-4">
<CircleSpinner size="md" color="text-blue-500" />
<span>Loading...</span>
</div>
);
}
⚠️ Important: Make sure to import the CSS file to enable all animations and styles.
All spinner components accept the following props:
Prop | Type | Default | Description |
---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Size of the spinner |
color | string | 'text-blue-500' | Tailwind color class |
className | string | '' | Additional CSS classes |
import 'spinner-zilla/dist/index.css';
import { CircleSpinner } from 'spinner-zilla';
<CircleSpinner /> // Uses default props
import 'spinner-zilla/dist/index.css';
import { RingSpinner } from 'spinner-zilla';
<RingSpinner
size="lg"
color="text-purple-500"
/>
import 'spinner-zilla/dist/index.css';
import { WaveSpinner } from 'spinner-zilla';
<WaveSpinner
size="xl"
color="text-green-500"
className="p-4 bg-gray-100 rounded-lg shadow-inner"
/>
import 'spinner-zilla/dist/index.css';
import { DotSpinner, StarSpinner } from 'spinner-zilla';
<div className="flex gap-4">
<DotSpinner size="sm" color="text-blue-500" />
<StarSpinner size="md" color="text-yellow-500" />
</div>
Visit our Storybook to see all spinners in action and try different configurations.
git clone https://github.com/SibilSoren/spinner-zilla.git
npm install
npm run storybook
npm run build
The build process will:
dist
directorydist/index.css
Run the test suite:
npm test
Contributions are welcome! Please read our contributing guidelines to get started.
git checkout -b feature/amazing-spinner
)git commit -m 'Add amazing spinner'
)git push origin feature/amazing-spinner
)MIT
Need help? Feel free to:
FAQs
A beautiful collection of animated loading spinners for React applications
The npm package spinner-zilla receives a total of 1 weekly downloads. As such, spinner-zilla popularity was classified as not popular.
We found that spinner-zilla demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.