Note
Freely inspired by Matt Cannon on CodePen
This component is created on top of the Mantine library.
Mantine Spinner is a dedicated React component designed to deliver smooth, customizable loading animations within Mantine-based applications. It exposes controls for visual tuning—including overall size, inner radius, segment count, stroke thickness, and animation speed—so you can match your brand and context, from subtle inline loaders to prominent page-level indicators.
To avoid hydration mismatches in SSR environments, the spinner renders exclusively on the client because its SVG geometry relies on floating‑point math that may differ between server and browser. Styling is provided via package CSS (with an optional @layer mantine-spinner import) to integrate cleanly with modern CSS layering and Mantine’s design system, resulting in a dependable, visually consistent loading experience.
npm install @gfazioli/mantine-spinneror
yarn add @gfazioli/mantine-spinnerAfter installation import package styles at the root of your application:
import '@gfazioli/mantine-spinner/styles.css';import { Spinner } from '@gfazioli/mantine-spinner';
function Demo() {
return <Spinner />;
}H## Sponsor
Your support helps me:
- Keep the project actively maintained with timely bug fixes and security updates
- Add new features, improve performance, and refine the developer experience
- Expand test coverage and documentation for smoother adoption
- Ensure long‑term sustainability without relying on ad hoc free time
- Prioritize community requests and roadmap items that matter most
Open source thrives when those who benefit can give back—even a small monthly contribution makes a real difference. Sponsorships help cover maintenance time, infrastructure, and the countless invisible tasks that keep a project healthy.
Your help truly matters.
💚 Become a sponsor today and help me keep this project reliable, up‑to‑date, and growing for everyone.
