Empty state
EmptyState. It is copied into your app’s ui/ by qatjs add empty: the code is yours to edit.
Example
No orders match
Try fewer filters or a wider date range.
import Button from './ui/button/button.qx'
import EmptyState from './ui/empty/empty.qx'
export default function Example() {
return (
<EmptyState title="No orders match" action={<Button>Clear filters</Button>}>
Try fewer filters or a wider date range.
</EmptyState>
)
}Add it
npx qatjs add emptyEmptyState
As a custom element: <ui-empty-state>.
| Prop | Type | Attribute |
|---|---|---|
title | QatNode | property only |
icon | QatNode | property only |
action | QatNode | property only |