Empty
Nothing here yet, and what to do next.
No tasks yet
Add the first task for Harbour rebrand.
Nothing for “signage”
Try another word.
All caught up
Nothing needs you.
In context
Review
0
Nothing on 24 Oct
Enjoy the quiet.
Props
| Prop | Type | Required | Default |
|---|---|---|---|
description | ReactNode | No | No data |
className | string | undefined | No | — |
icon | EmptyIcon | undefined | No | auto |
illustration | EmptyIllustration | undefined | No | ghost |
bionic | boolean | undefined | No | — |
bionicOptions | BionicOptions | undefined | No | — |
Accessibility
The illustration is a real <img> with alt="" (the vector icons are aria-hidden): a screen reader only hears the description and any action button.
data-rebar-* attributes
data-rebar-component="empty", data-rebar-part="icon" | "description" | "action".
Migrating to Ant Design
AntD's Empty has description and an action child too, but its image presets (Empty.PRESENTED_IMAGE_SIMPLE) do not map to icon/illustration here. Not codemod-covered.
Neutral dark-mode glyph
With icon="auto" the raster illustration shows in light mode, and in dark mode ([data-theme="dark"] or a dark ThemeScope) a neutral, theme-tinted line glyph takes its place: a ghost for the default illustration, an empty tray for bowl-and-spoon. It is never the error-style circle-with-an-X (that stays available as icon="vector").