qat

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.

Example.qx10 linesOpen in the playground
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

shell1 line
npx qatjs add empty

EmptyState

As a custom element: <ui-empty-state>.

EmptyState: props
PropTypeAttribute
titleQatNodeproperty only
iconQatNodeproperty only
actionQatNodeproperty only