Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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 126 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.