# date-time-display

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

## 导出

```ts
import { DateTimeDisplay } from "@modra/react";
```

## Props（DateTimeDisplayProps）

| 名称 | 必填 | 类型 | 说明 |
| --- | --- | --- | --- |
| `value` | 否 | `DateTimeDisplayValue \| null` | An absolute Date, a value accepted by Date, or a millisecond timestamp. |
| `locale` | 否 | `string \| string[]` | Locale passed to Intl.DateTimeFormat. Defaults to the browser locale. |
| `timeZone` | 否 | `string` | IANA time zone used for rendering the value. |
| `format` | 否 | `Intl.DateTimeFormatOptions` | Intl formatting options. Defaults to a medium date and short time. |
| `fallback` | 否 | `React.ReactNode` | Content rendered when value is empty or cannot be parsed. |
| `as` | 否 | `"time" \| "span"` | Element used for the semantic output. |
