Genesis
@stable

DataPageShell

packages/ui/src/components/data/DataPageShell.tsx

Import
Subpath export: @marktiderman/genesis-ui/data
import { DataPageShell } from "@marktiderman/genesis-ui/data";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

DataPageShell

PropTypeDefaultDescription
title*string—Display title for the page
classNamestring—Merged onto the root, not replacing its layout.
countnumber—Number of filtered/visible items
countFormat{ one?: string; other?: string; filtered?: string | undefined; } | undefined—The count's words; see PageHeader `countFormat`.
createActionReactNode—
defaultFiltersOpenbooleanfalse
densityenum—
emptyActionReactNode—
emptyDescriptionstring—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.
emptyIconLucideIcon—
emptyMessagestring—
entityNamestring—Singular entity name for generated text, e.g. "session"
entityNamePluralstring—Several of `entityName` ("people"), when not `entityName` + "s".
errorMessagestring—
filtersReactNode—Slot for filter bar
filtersCollapsiblebooleanfalseWhen true, filters render inside PageHeader details (collapsed by default). Default false preserves always-visible filters on existing boards.
filtersHintReactNode—
filtersLabelstring—
filtersOpenboolean—
hasActiveFiltersbooleanfalseWhether filters are currently active
hasErrorbooleanfalseError state
headerComponentType<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).
headerOptionsPageHeaderOptions—PageHeader chrome config — developer defaults; users can further customize via the in-header Header options menu.
headerOptionsStorageKeystring—Persist user header-option overrides (localStorage)
iconLucideIcon—
isEmptybooleanfalse
isLoadingbooleanfalse
onClearFilters(() => void)—
onDensityChange((density: "compact" | "comfortable" | "spacious") => void)—
onFiltersOpenChange((open: boolean) => void)—
onPageSizeChange((size: number) => void)—
onRetry(() => void)—
onViewModeChange((mode: ViewMode) => void)—
pageSizenumber—View settings
rootRefRef<HTMLDivElement>—A ref on the shell's root element (ResourceView measures a list's width through it).
secondaryActionsPageHeaderAction[]—Extra actions, rendered in the header's one overflow menu.
statsReactNode—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.
subtitlestring—Subtitle text
totalCountnumber—Total items before filtering
viewModeenum—