apps/public-docsite-v9/src/Concepts/Migration/FromV0/Components/Spinner.mdx
import { Meta } from '@storybook/addon-docs/blocks';
<Meta title="Concepts/Migration/from v0/Components/Loader to Spinner Migration" />Fluent UI Northstar (v0) provides the Loader control to allow users to indicate that content is being loaded on the screen.
Fluent UI v9 provides a Spinner control with a different API.
Basic usage of Loader v0
import { Loader } from '@fluentui/react-northstar';
import React from 'react';
const LoaderV0BasicExample = () => <Loader />;
export default LoaderV0BasicExample;
An equivalent Spinner in v9 is
import * as React from 'react';
import { Spinner } from '@fluentui/react-components';
const SpinnerV9BasicExample = () => <Spinner />;
export default SpinnerV9BasicExample;
This table maps Loader v0 props to the Spinner v9 equivalent.
| v0 | v9 | Notes |
|---|---|---|
| `accessibility` | n/a | |
| `as` | n/a | |
| `className` | `className` | |
| `delay` | n/a | |
| `design` | n/a | |
| `indicator` | n/a | |
| `inline` | n/a | |
| `label` | `label` | |
| `labelPosition` | `labelPosition` | Default changes from `below` to 'after' |
| `size` | `size` | |
| `styles` | `className` | |
| `svg` | n/a | |
| `variables` | n/a | Use `FluentProvider` to customize themes |