PageNotifications Pro

Part of Pro. Versions up to 0.10 of the open source package include it under MIT; later releases keep it in Pro.

Notifications page. Slots: filters, feed, empty.

Jump to API reference

Import

Vue
import { UiPageNotifications } from '@ziyarago/ui-pro/vue'

Default

Notifications

Section

Filters slot
Feed slot
Empty state slot
Vue
<UiPageNotifications title="Notifications" subtitle="Section">
  <template #filters>Filters slot</template>
  <template #feed>Feed slot</template>
  <template #empty>Empty state slot</template>
</UiPageNotifications>

API reference

Notifications template: filters, a feed grouped by day and an empty state. Put Mark all read in actions.

Props

PropType and valuesDefaultDescription
titlestring—Page heading. The built-in header renders only when title is set and the header slot is empty.
subtitlestring—Caption under the heading.
crumbs{ label: string; href?: string }[]—Breadcrumb trail above the title.

Slots

Vue: named slots. React: a prop with the same name; default is children.

headerCustom page header; replaces the built-in title/subtitle/crumbs header.
actionsButtons on the right of the built-in header. With a title they sit beside it; without a title they render alone, right-aligned (unless the header slot is filled).
filtersFilter chips such as all, unread and mentions; FilterChips.
feedNotification rows grouped by day; Card, IconTile, Badge, Divider.
emptyShown instead of the feed when nothing matches; EmptyState.

Notes

  • Place inside AppShell; fill only the slots you need.
  • Fill empty only when the feed has no rows. Mark all read goes in the actions slot.