# empty-value

- 分组：组合组件（Composite）
- 页面：/components/empty-value
- 源码：packages/react/src/components/empty-value.tsx

## 导出

```ts
import { EmptyValue, isEmptyValue } from "@modra/react";
```

## Props（EmptyValueProps）

| 名称 | 必填 | 类型 | 说明 |
| --- | --- | --- | --- |
| `value` | 否 | `unknown` | The value to display. When it is empty (see `isEmptyValue`) the placeholder is rendered, otherwise `children` (or the value itself when it is a string, number or element). Omit it to always render the placeholder. |
| `children` | 否 | `React.ReactNode` | Rendered instead of the raw value when the value is present. |
| `placeholder` | 否 | `React.ReactNode` | The placeholder glyph. Defaults to an em dash. |
