---
title: Loading
sidebar_label: Loading
---
import { StoryWithControls } from '../../../src/components/StorybookWrapper';
# Loading
The Loading component from Superset's UI library.
## Live Example
## Try It
Edit the code below to experiment with the component:
```tsx live
function Demo() {
return (
{['normal', 'floating', 'inline'].map(position => (
{position}
))}
);
}
```
## Size and Opacity Showcase
```tsx live
function SizeShowcase() {
const sizes = ['s', 'm', 'l'];
return (
Size
Normal
Muted
Usage
{sizes.map(size => (
{size.toUpperCase()} ({size === 's' ? '40px' : size === 'm' ? '70px' : '100px'})
{size === 's' && 'Filter bars, inline'}
{size === 'm' && 'Explore pages'}
{size === 'l' && 'Full page loading'}
))}
);
}
```
## Contextual Examples
```tsx live
function ContextualDemo() {
return (
Filter Bar (size="s", muted)
Filter 1:
Filter 2:
Dashboard Grid (size="s", muted)
{[1, 2, 3].map(i => (
))}
Main Loading (size="l")
);
}
```
## Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `size` | `string` | `"m"` | Size of the spinner: s (40px), m (70px), or l (100px). |
| `position` | `string` | `"normal"` | Position style: normal (inline flow), floating (overlay), or inline. |
| `muted` | `boolean` | `false` | Whether to show a muted/subtle version of the spinner. |
## Import
```tsx
import { Loading } from '@superset/components';
```
---
:::tip[Improve this page]
This documentation is auto-generated from the component's Storybook story.
Help improve it by [editing the story file](https://github.com/apache/superset/edit/master/superset-frontend/packages/superset-ui-core/src/components/Loading/Loading.stories.tsx).
:::