![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@lightspeed/cirrus-spinner
Advanced tools
Spinner component bundles the progress
icon and makes it spin.
First, make sure you have been through the Getting Started steps of adding Cirrus in your application.
If using Yarn:
yarn add @lightspeed/cirrus-spinner
Or using npm:
npm i -S @lightspeed/cirrus-spinner
Import required styles in your .scss
:
@import '@lightspeed/cirrus-spinner/Spinner.scss';
<Spinner>
Color or Size properties can be any Cirrus token, ex
green-100
(color),xlarge
(size) or any CSS value.
Prop | Type | Description |
---|---|---|
className | string | Custom className to add in addition to the default ones |
name | string | Name of the icon |
size | string | Default 1rem, can be set to any custom value |
color | string | Applied on the svg fill property |
baseColor | string | Applied on the base paths fill property |
baseColor1 | string | Applied on the base-1 path fill property |
baseColor2 | string | Applied on the base-2 path fill property |
import React from 'react';
import Spinner from '@lightspeed/cirrus-spinner';
const MyComponent = () => (
<div>
<Spinner size="large" color="maple-200" />
</div>
);
export default MyComponent;
Type | Class |
---|---|
base | .cr-spinner |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="cr-icon cr-icon-spinner cr-spinner" style="width: 1rem; height: 1rem;">
<path class="cr-icon__base cr-icon__base-2" d="M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm0-3A5 5 0 1 0 8 3a5 5 0 0 0 0 10z" opacity=".3"></path>
<path class="cr-icon__base cr-icon__base-1" d="M8 13a1.5 1.5 0 0 1 0 3A8 8 0 0 1 .323 5.742a1.5 1.5 0 1 1 2.879.846A5 5 0 0 0 8 13z"></path>
</svg>
FAQs
Cirrus Spinner Component
The npm package @lightspeed/cirrus-spinner receives a total of 0 weekly downloads. As such, @lightspeed/cirrus-spinner popularity was classified as not popular.
We found that @lightspeed/cirrus-spinner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.