Components
Empty State
Editorial empty result with an optional reset action.
EmptyState communicates that a search or list returned no results. Its illustration is a
root-relative icon, so the docs instance passes imageBaseUrl to resolve it under the Pages
base path. The action is a docs-only callback that updates a local status message.
Nothing available for these dates
Try different dates or adjust your guest count.
string
string
string
With action
Props
| Prop | Values | Notes |
|---|---|---|
heading | string | Main message |
body | string | Supporting explanation |
action | { label, onClick } | Optional reset/try-again control |
imageBaseUrl | string | Optional prefix for the illustration asset |
Responsive behaviour
The illustration, heading and copy are centered in a narrow reading column and wrap cleanly on phones. No horizontal scrolling is introduced.
Usage
import EmptyState from '@/components/feedback/empty-state';
<EmptyState heading="Nothing available for these dates" action={{ label: 'Reset', onClick: reset }} />