Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Empty state

What a list shows when it's empty: the one action that fills it, or a way to clear the search.

Preview

No customers yet

Add your first customer to see them here.

Add it to your project

  1. Sign in once on this machine
    izzy login

    The account is free. Create a free account

  2. Add the block
    izzy add block empty-state

    Writes no file: it goes on your page, at the line you give with --at.

Settings

Each setting is a flag on izzy add. The flag syntax isn't final; for now it looks like this:

bash
izzy add block empty-state --kind NoResults
Empty state settings
NameType or choicesDefaultDescription
KindFirstUse | NoResultsFirstUseFirstUse: nothing has been added yet, so it offers the one action that adds something. NoResults: a search or filter matched nothing, so it offers to clear it; keep the filters above it.
HreftextEmptyWhere the button goes. Empty uses the sample's: customers/new to add, customers to clear.
IntotextEmptyThe page it goes on, at the end. Usually left empty, to place it where you choose.

Mode support

What works in each mode, Empty state
FeatureStaticInteractive
EverythingYesYes

Static: static server-side rendering, with no circuit and no WebAssembly. Interactive: Server, WebAssembly or Auto.

Accessibility

  • The title is a heading, an h2, so the empty list still has a name in the page's outline.
  • The icon is decorative; the title says what's missing.
  • It isn't a live region: if a search empties the list without a page load, announce the result yourself.

Components used

  • EmptyState: Shows what to do when there's nothing yet.
  • Button: Submits or resets a form, follows a link or runs C#.

Connection lost

Rejoining the server…