Skip to content

DetailViewProps

DetailViewProps<T> = object

Defined in: packages/ui/src/types.ts:633

Props for the DetailView composite component.

Displays a single record’s fields in a two-column grid with a permission-aware action toolbar. Fields render using the appropriate TypedField component (DateFieldProps, BooleanFieldProps, etc.) based on the Drizzle column type. Override individual fields with custom render functions.

T = unknown

The record object type for type-safe field rendering.

optional actions: ClientDescriptor

Defined in: packages/ui/src/types.ts:645

Action descriptor for the action toolbar.


optional breadcrumb: BreadcrumbItem[]

Defined in: packages/ui/src/types.ts:647

Breadcrumb trail items.


optional exclude: string[]

Defined in: packages/ui/src/types.ts:643

Field keys to exclude from display.


optional fields: ColumnShorthand<T>[]

Defined in: packages/ui/src/types.ts:641

Field definitions or key strings. If omitted, fields are inferred from the record.


record: T

Defined in: packages/ui/src/types.ts:639

The record object to display.


optional table: unknown

Defined in: packages/ui/src/types.ts:637

Drizzle table for field type inference.


title: string

Defined in: packages/ui/src/types.ts:635

Page title, typically the record’s display name.