yarn add @twilio-paste/spinner - or - yarn add @twilio-paste/core
import {Spinner} from '@twilio-paste/core/spinner';
const Component = () => {
return <Spinner decorative={false} title="Loading" />;
};
decorative RequiredRequired
Whether or not the SVG is just visual flair or adds meaning to the page. Specifically for screenreaders to know whether to read out the title or not.
- Type
boolean
delay
Time delay in milliseconds of the animation.
- Type
number
element
Overrides the default element name to apply unique styles with the Customization Provider
- Type
any
- Default
SPINNER
title
The accessibility text that is read when screenreaders get to this component.
- Type
string
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.