Empty: Heading level
The title is a <div> so it never breaks your page outline. Render it as the heading level that fits, and label the region with it.
No drafts
Drafts are saved automatically while you write.
This adds the example as components/examples/empty/heading.tsx, together with the Empty component and the HextaUI theme tokens it needs.
pnpm dlx shadcn@latest add https://hextaui.com/r/empty-heading.jsonTo add only the component, follow the Empty installation.
Props in this example
The Empty props this example sets, from the API reference.
| Prop | Type | Default |
|---|---|---|
render | ReactElement | (props, state) => ReactElement | <div> |
| Prop | Type | Default |
|---|---|---|
varianticon puts an icon in a muted tile. stack raises the tile over two fanned cards that spread when the empty state is hovered. Both hide the media from assistive tech. | "default" | "icon" | "stack" | "default" |
| Prop | Type | Default |
|---|---|---|
renderRender a heading, such as render={<h2 />}. | ReactElement | (props, state) => ReactElement | <div> |
| Prop | Type | Default |
|---|---|---|
renderPlain links inside are underlined. Components rendered as links keep their own style. | ReactElement | (props, state) => ReactElement | <div> |
Every prop is in the Empty API reference.
- Entrance
- Outline
- Muted
- Small
- Avatar
- Avatar group
- Image
- No search results
- In a card
- In a table
- In a popover
- In a command list
- Long content
- Right to left
See them all, with keyboard support and accessibility notes, on the Empty page.
- AlertInline messages for status and feedback, with a neutral surface, a colored icon and a dismiss that collapses smoothly.
- ProgressA bar or ring that shows how far a task has come, eases between updates and slides while the total is unknown.
- SkeletonPlaceholders that wait 150ms before showing, take the exact size of the content they wrap, and fade it in without moving anything.
- SpinnerA loading indicator with Apple-style ticks or a breathing ring that can wait before showing and stay long enough not to flicker.
- ToastBrief messages that stack neatly, expand on hover, swipe away, and turn a loading state into success or error in place.