--- title: 'Loading' description: 'Loaders express an unspecified wait time or display the length of a process.' url: https://nextui.org/docs/components/loading --- # Loading Loaders express an unspecified wait time or display the length of a process. ```jsx import { Loading } from '@nextui-org/react'; ``` `} /> Loading `} /> `} /> `} /> Primary Secondary Success Warning Error `} /> Primary Secondary Success Warning Error `} /> ### APIs #### Loading Props | Attribute | Type | Accepted values | Description | Default | | ---------------------- | ----------------------- | -------------------------------- | ------------------------------------------ | --------- | | **size** | `NormalSizes` `number` | [NormalSizes](#normal-sizes) | Loading size | `medium` | | **color** | `SimpleColors` `string` | [SimpleColors](#simple-colors) | Change loading color | `primary` | | **textColor** | `SimpleColors` | [SimpleColors](#simple-colors) | Change loading text color | `default` | | **type** | `NormalLoaders` | [NormalLoaders](#normal-loaders) | Selected or not (in single) | `default` | | **gradientBackground** | `string/null` | - | Set a background for gradient loading type | - | | ... | `HTMLAttributes` | `'id', 'className', ...` | Native props | - | ### Loading types #### Simple Colors ```ts type SimpleColors = | 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error'; ``` #### Normal Sizes ```ts type NormalSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; ``` #### Normal Loaders ```ts type NormalLoaders = | 'default' | 'points' | 'points-opacity' | 'gradient' | 'spinner'; ```