Skip to content

Empty ​

A message in place of an empty list.

No orders yet

Orders from the store show up here on their own. Create phone orders by hand.

Put the reason in title and description, and the next step in the actions slot.

Installation ​

ts
import { NuiEmpty } from '@numior/kit';

Usage ​

Change the size or hide the icon.

No orders yet

Orders from the store show up here on their own. Create phone orders by hand.

Title. Rendered as a p paragraph, not a heading tag.

Explanation under the title.

size
Size: md for regular, sm for compact, for lists and tables.

Examples ​

Fit into a narrow space ​

Set size="sm".

No results

No products match “rocking chair”.

The cart is empty

List, Tree, NuiSelect and NuiCombobox show such a placeholder on their own when they are empty.

Accessibility ​

The title is a plain paragraph, so it does not break the heading order of the page. Screen readers skip the icon: put the meaning into title or description.

API ​

Props

Name
Type
Default
Description
icon
IconSource
"inbox"
Icon above the text.
hideIcon
boolean
false
Removes the icon above the title, as in a narrow placeholder.
title
string
—
Title. Rendered as a p paragraph, not a heading tag.
description
string
—
Explanation under the title.
size
NuiEmptySize
"md"
Size: md for regular, sm for compact, for lists and tables.

Slots

Name
Slot props
Description
media
{}
Your own picture or illustration in place of the icon.
title
{}
Custom title instead of title.
default
{}
Text instead of description.
actions
{}
Buttons under the text.

Edit this page

Search

Esc