Live Code
import { Spinner, IconsProvider } from '@lmc-eu/spirit-web-react';
import icons from '@lmc-eu/spirit-icons/icons';<
...
<IconsProvider value={icons}>
<Spinner />
</IconsProvider>
Storybook
Usage
Spinner
The Spinner indicates something is loading.
<Spinner />
<Spinner color="secondary" />
API
Name | Type | Default | Required | Description |
---|---|---|---|---|
color | Text Color dictionary | — | ✕ | Color of the Spinner |
On top of the API options, the components accept additional attributes. If you need more control over the styling of a component, you can use style props and escape hatches.