Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified

Spinner

Spinner is a React component for rendering a loading indicator.

Please exercise caution in deciding to use a spinner in your component. A lone spinner is a poor user-experience and conveys little context to what the user should expect from the page. Refer to the Reactivity and Loading States guide for more information on building fast interfaces and making the most of data already available to use.

Usage

import { Spinner } from '@automattic/components';

export default function MyComponent() {
    return <Spinner />;
}

Props

The following props can be passed to the Spinner component:

PROPERTY TYPE REQUIRED DEFAULT DESCRIPTION
size number no 20 The width and height of the spinner, in pixels.