---
url: /reference/interface/ui-components/loading.md
---
# Loading

加载指示器用于表示内容正在加载。

## 使用

::: code-group

```ts [Angular]
import { NxLoading } from "@pc-nexus/angular";
```

```ts [React]
import { NxLoading } from "@pc-nexus/react";
```

:::

## 属性

:::comp-props

| 名称      | 类型      | 必填 | 描述                                               |
| --------- | --------- | ---- | -------------------------------------------------- |
| `loading` | `boolean` |      | 是否正在加载，默认 `true`。为 `false` 时指示器消失 |
| `tips`    | `string`  |      | 指示器下方的文案。空字符串不显示                   |

:::

## 示例

### Default

默认处于加载中，显示指示器。

:::demo src=loading-default
:::

### Tips

通过 `tips` 在指示器下方显示文案。

:::demo src=loading-tips
:::
