ColumnShorthand
ColumnShorthand<
T> =string|ColumnDef<T>
Defined in: packages/ui/src/types.ts:420
Column definition shorthand: either a plain column key string or a full ColumnDef.
When a string is provided, the label is auto-derived from the key (e.g., "createdAt"
becomes “Created At”) and column behavior (sorting, rendering) is inferred from the
Drizzle schema column type.
Type Parameters
Section titled “Type Parameters”T = unknown
The row object type, forwarded to ColumnDef for type-safe rendering.
Example
Section titled “Example”// Mix strings and full definitions:const columns: ColumnShorthand<Post>[] = [ "title", { key: "author", label: "Written by" }, { key: "createdAt", sortable: false },];