Product
Introducing Ruby Support in Socket
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
@atlaskit/spinner
Advanced tools
A React component that displays a spinning icon to show a loading state
Spinners are used for showing a system process of unknown length going on that ends with the system displaying results to the user.
Interact with a live demo of the @atlaskit/spinner component.
npm install @atlaskit/spinner
Import the component in your React app as follows:
import Spinner from '@atlaskit/spinner';
ReactDOM.render(<Spinner />, container);
The spinner will display a loading in animation and then continue spinning until the isCompleting
prop is set on it.
If this prop is set to true the spinner will begin playing the outro animation (approximately 300ms).
You can be notified once the animation is complete by hooking into the onComplete
callback like so.
import Spinner from '@atlaskit/spinner';
// some flag that we will set once our long running task is complete
let loadingFinishedFlag = false;
function loadingFinished() {
// show our loaded content, etc
}
// this would normally be in a component or an app
ReactDOM.render(<Spinner
isCompleting={loadingFinishedFlag}
onComplete={loadingFinished}
/>);
The result is a very smooth loading in and out animation that should feel seamless to the user.
* Please note that this module could have dependencies that are governed by the Atlassian Design Guidelines license which will be automatically included on install. Each dependency has a license file that indicates whether the Atlassian Design Guidelines license applies.
Let us know what you think of our components and docs, your feedback is really important for us.
Are you in trouble? Read through our contribution guidelines and raise an issue to us.
FAQs
A spinner is an animated spinning icon that lets users know content is being loaded.
The npm package @atlaskit/spinner receives a total of 80,603 weekly downloads. As such, @atlaskit/spinner popularity was classified as popular.
We found that @atlaskit/spinner 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.
Product
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.