|
Download wp-calypso/packages/components/src/spinner/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 986 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/spinner/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/components/src/spinner/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/spinner/README.md
986 Bytes
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. |