Empty state

stable 1 kB
<hk-empty>

Three empty states that genuinely differ — nothing yet, nothing matching, and something broke — because the right next action is different in each.

#zero#placeholder
In the package npm i hellskitchen-ui Import hk-empty and use it directly.

Live demo

Running in this page — interact with it.

Inputs

NameTypeDefaultDescription
iconstring''Icon class (from your own icon font) shown above the title.
titlestring''Headline.
bodystring''Supporting sentence — say what to do next.
actionLabelstring''Primary button label. Omit for no button.

Outputs

  • actionEventEmitter<void>

    Emits when the button is pressed.

Theming

Component tokens, each falling back to a global one:

PropertyDefaultControls
--hk-empty-icon#475569Icon colour.
--hk-empty-pad2.5rem 1.5remBlock padding.

Accessibility

  • The title is a heading, so the state is reachable by heading navigation.

More in Feedback