EmptyState
解释视图为何没有内容。
用法
说明缺少什么,并在合适时提供一个后续操作。
无障碍
遵循标题层级,并使用描述性的操作标签。
| 属性 | 类型 | 默认值 |
|---|---|---|
| children | ReactNode | None |
<EmptyState>
<strong>No events captured</strong>
<p>Interact with the page to start filling the timeline.</p>
<Button variant="secondary" onClick={() => location.hash = '/interaction-pattern'}>
Open Interaction Lab
</Button>
</EmptyState>