Oddmash UI
所有组件

EmptyState

解释视图为何没有内容。

用法

说明缺少什么,并在合适时提供一个后续操作。

无障碍

遵循标题层级,并使用描述性的操作标签。

属性类型默认值
childrenReactNodeNone
<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>

交互式文档