DataPageShell
packages/ui/src/components/data/DataPageShell.tsx
Import
Subpath export:
@marktiderman/genesis-ui/dataimport { DataPageShell } from "@marktiderman/genesis-ui/data";Components
Auto-generated from TypeScript source via
react-docgen-typescript.DataPageShell
| Prop | Type | Default | Description |
|---|---|---|---|
| title* | string | — | Display title for the page |
| className | string | — | Merged onto the root, not replacing its layout. |
| count | number | — | Number of filtered/visible items |
| countFormat | { one?: string; other?: string; filtered?: string | undefined; } | undefined | — | The count's words; see PageHeader `countFormat`. |
| createAction | ReactNode | — | |
| defaultFiltersOpen | boolean | false | |
| density | enum | — | |
| emptyAction | ReactNode | — | |
| emptyDescription | string | — | A sentence under the empty-state title — what this list is for, or what to do first. Forwarded to `EmptyState`'s `description`; hidden while filters are active, where "no results" is the whole story. |
| emptyIcon | LucideIcon | — | |
| emptyMessage | string | — | |
| entityName | string | — | Singular entity name for generated text, e.g. "session" |
| entityNamePlural | string | — | Several of `entityName` ("people"), when not `entityName` + "s". |
| errorMessage | string | — | |
| filters | ReactNode | — | Slot for filter bar |
| filtersCollapsible | boolean | false | When true, filters render inside PageHeader details (collapsed by default). Default false preserves always-visible filters on existing boards. |
| filtersHint | ReactNode | — | |
| filtersLabel | string | — | |
| filtersOpen | boolean | — | |
| hasActiveFilters | boolean | false | Whether filters are currently active |
| hasError | boolean | false | Error state |
| header | ComponentType<PageHeaderProps> | "toolbar" | null | — | Replace the header outright. It receives exactly the props `DataPageShell` would have given `PageHeader`, so the common case is a wrapper that renders `PageHeader` with one thing added — an overflow menu, a status strip, a second row — rather than a reimplementation. `null` ejects it: shell layout, states and filter row, no header. `"toolbar"` keeps the header's actions — count, view toggle, view settings, create, overflow menu — and drops the title block, for a list embedded in a tab or card whose page already has the heading. `title` still feeds the generated copy ("Failed to load …", the count's noun). |
| headerOptions | PageHeaderOptions | — | PageHeader chrome config — developer defaults; users can further customize via the in-header Header options menu. |
| headerOptionsStorageKey | string | — | Persist user header-option overrides (localStorage) |
| icon | LucideIcon | — | |
| isEmpty | boolean | false | |
| isLoading | boolean | false | |
| onClearFilters | (() => void) | — | |
| onDensityChange | ((density: "compact" | "comfortable" | "spacious") => void) | — | |
| onFiltersOpenChange | ((open: boolean) => void) | — | |
| onPageSizeChange | ((size: number) => void) | — | |
| onRetry | (() => void) | — | |
| onViewModeChange | ((mode: ViewMode) => void) | — | |
| pageSize | number | — | View settings |
| rootRef | Ref<HTMLDivElement> | — | A ref on the shell's root element (ResourceView measures a list's width through it). |
| secondaryActions | PageHeaderAction[] | — | Extra actions, rendered in the header's one overflow menu. |
| stats | ReactNode | — | Slot for a stat cards row. Forwarded to the header, which renders it full width under the title block and above the filters — but only when `headerOptions.showStats` is on (default off), so a page that gains `stats` shows nothing new until the developer or user opts in. |
| subtitle | string | — | Subtitle text |
| totalCount | number | — | Total items before filtering |
| viewMode | enum | — |