Field renderers
Set a column's valueType to display currency, dates, percentages or statuses in the corresponding format. Use fieldProps to adjust the format. Built-in types are available directly; register business types with the table's renderers prop.
Basic usage
The currency, date and status columns below only configure valueType. valueEnum supplies the status labels and colors, so no renderer registry is needed.
Built-in types
The option links lead directly to their field tables and examples. fieldProps has type TableFieldProps and also supports per-cell configuration. Built-in renderers consume only the options relevant to their type.
| valueType | Default behavior | fieldProps options |
|---|---|---|
text | Enum label or raw value; booleans display as true / false | No format options |
digit | Formats finite numbers or non-empty numeric strings with Intl | locale, numberFormat |
money | Currency format, CNY by default | currency, locale, numberFormat |
date | YYYY-MM-DD | locale, dateFormat |
dateTime | YYYY-MM-DD HH:mm:ss | locale, dateFormat |
time | HH:mm:ss; also accepts time-only strings | locale, dateFormat |
dateRange / dateTimeRange | Two dates or date-times, joined with ~ | rangeSeparator / rangeEmptyText, locale, dateFormat |
percent | 25 displays as 25%, with at most two decimal places | percentScale, locale, numberFormat |
progress | Progress bar from 0–100, with a success icon when complete | percentScale / showValue / status, locale, numberFormat |
tag | Enum label and status tag | status |
Dates and times
date / dateTime / time accept a Date, date string or millisecond timestamp. time also accepts HH:mm and HH:mm:ss strings; for example, 09:30 displays as 09:30:00 by default. Unparseable values keep their original display value.
| fieldProps field | Type | Default | Purpose |
|---|---|---|---|
locale | string | string[] | Current table locale | Intl language, such as 'zh-CN' or 'en-US'; applies when dateFormat is set. |
dateFormat | Intl.DateTimeFormatOptions | Unset | An options object using the fields below; enables localized dates and times with Intl. |
dateFormat options
dateFormat is an object. Use dateStyle / timeStyle to select predefined formats, or component fields such as year / month / day to choose what to display. Set timeZone to select a time zone.
| dateFormat field | Type / accepted values | Purpose |
|---|---|---|
dateStyle | 'full' | 'long' | 'medium' | 'short' | Date format detail. |
timeStyle | 'full' | 'long' | 'medium' | 'short' | Time format detail; can be combined with dateStyle. |
timeZone | string | Time zone, such as 'UTC' or 'Asia/Shanghai'. Usually defaults to the runtime's local zone; date-only and time-only rules are described below. |
year | 'numeric' | '2-digit' | Full or two-digit year. |
month | 'numeric' | '2-digit' | 'long' | 'short' | 'narrow' | Numeric month or localized month name. |
day | 'numeric' | '2-digit' | Day of the month. |
weekday | 'long' | 'short' | 'narrow' | Localized weekday name. |
hour / minute / second | 'numeric' | '2-digit' | Time components to display. |
hour12 | boolean | Whether to use 12-hour time; false selects 24-hour time. |
hourCycle | 'h11' | 'h12' | 'h23' | 'h24' | Hour cycle; hour12 takes precedence when both are provided. |
timeZoneName | 'short' | 'long' | 'shortOffset' | 'longOffset' | 'shortGeneric' | 'longGeneric' | Presentation of the time zone name or offset. |
These are common fields; see Intl.DateTimeFormat options for the complete configuration. Locale and Intl determine the order, separators and text. Omit dateFormat to keep the default YYYY-MM-DD display.
import type { TableColumnType } from '@vtable-guild/vtable-guild'
const column: TableColumnType = {
dataIndex: 'createdAt',
valueType: 'date',
fieldProps: {
locale: 'zh-CN',
dateFormat: { dateStyle: 'medium', timeZone: 'UTC' },
},
}import type { TableColumnType } from '@vtable-guild/vtable-guild'
const column: TableColumnType = {
dataIndex: 'createdAt',
valueType: 'dateTime',
fieldProps: {
locale: 'zh-CN',
dateFormat: {
dateStyle: 'medium',
timeStyle: 'short',
timeZone: 'Asia/Shanghai',
hour12: false,
},
},
}import type { TableColumnType } from '@vtable-guild/vtable-guild'
const column: TableColumnType = {
dataIndex: 'createdAt',
valueType: 'dateTime',
fieldProps: {
locale: 'en-GB',
dateFormat: {
year: 'numeric',
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
hour12: false,
timeZone: 'UTC',
},
},
}Combining format options
dateStyle / timeStyle cannot be combined with component options such as year / month / day / hour / minute / second / timeZoneName. Both approaches can use timeZone and hour12.
Providing dateFormat, including {}, switches entirely to Intl formatting; the renderer no longer appends the default time fields for its valueType. For example, dateTime with only dateStyle shows only a date. Add timeStyle or individual time fields to include time. Invalid Intl configurations throw an exception.
Calendar dates and time zones
- Without
dateFormat, date-only strings keep their calendar date. ADate, timestamp or string with a time zone uses the runtime's local date and time. - A date-only string such as
'2026-10-25'displays as'2026-10-25 00:00:00'withdateTimeby default. Intl formatting preserves the calendar date in UTC whentimeZoneis unset; an explicit zone converts that UTC midnight reference value. - Intl formatting of a time-only string uses
1970-01-01 UTCas its reference and preserves the wall-clock time whentimeZoneis unset. Pass aDateor timestamp when the real date, daylight saving time or display across time zones matters.
Numbers and currency
digit / money accept finite numbers or non-empty numeric strings. Booleans, empty strings and whitespace are not implicitly converted to zero; unparseable values keep their original display value.
| fieldProps field | Type | Default | Purpose |
|---|---|---|---|
locale | string | string[] | Current table locale | Number grouping, separators and currency language. |
numberFormat | Intl.NumberFormatOptions | Intl defaults | Precision, grouping and presentation; common fields are listed below. |
currency | string | 'CNY' | ISO 4217 currency code used by money, such as 'USD' or 'EUR'. |
numberFormat options
| numberFormat field | Type / accepted values | Purpose |
|---|---|---|
minimumFractionDigits / maximumFractionDigits | number | Minimum and maximum decimal places; the minimum must not exceed the maximum. |
minimumSignificantDigits / maximumSignificantDigits | number | Minimum and maximum significant digits. |
minimumIntegerDigits | number | Minimum integer digits; pads with zeros when needed. |
useGrouping | boolean | 'auto' | 'always' | 'min2' | Whether to use grouping separators, such as thousands separators. |
notation | 'standard' | 'scientific' | 'engineering' | 'compact' | Standard, scientific, engineering or compact notation. |
compactDisplay | 'short' | 'long' | Detail when notation: 'compact'. |
signDisplay | 'auto' | 'always' | 'exceptZero' | 'negative' | 'never' | When to display a plus or minus sign. |
currencyDisplay | 'symbol' | 'narrowSymbol' | 'code' | 'name' | Currency symbol, narrow symbol, code or name for money. |
currencySign | 'standard' | 'accounting' | Standard or accounting presentation of negative currency values. |
These are common fields; see Intl.NumberFormat options for the complete configuration. digit defaults to decimal style. money always uses style: 'currency' and fieldProps.currency, which cannot be overridden by numberFormat.style / currency. percent / progress always use percent style. Other valid Intl options are preserved; invalid configurations throw an exception.
import type { TableColumnType } from '@vtable-guild/vtable-guild'
const column: TableColumnType = {
dataIndex: 'amount',
valueType: 'money',
fieldProps: {
currency: 'USD',
locale: 'en-US',
numberFormat: {
minimumFractionDigits: 2,
maximumFractionDigits: 2,
currencyDisplay: 'code',
},
},
}
// 1234.5 displays as USD 1,234.50 (Intl determines the whitespace).Date ranges
dateRange / dateTimeRange accept an array with exactly two endpoints. Each endpoint follows the date / dateTime format and time zone rules.
| fieldProps field | Type | Default | Purpose |
|---|---|---|---|
rangeSeparator | string | ' ~ ' | Separator between the endpoints. |
rangeEmptyText | string | '—' | Placeholder for a null / undefined / '' endpoint. |
locale | string | string[] | Current table locale | Shared Intl language for both endpoints. |
dateFormat | Intl.DateTimeFormatOptions | Unset | Shared date format options for both endpoints. |
import type { TableColumnType } from '@vtable-guild/vtable-guild'
const column: TableColumnType = {
dataIndex: 'period',
valueType: 'dateRange',
fieldProps: { rangeSeparator: ' to ', rangeEmptyText: 'TBD' },
}
// ['2026-10-26', null] displays as 2026-10-26 to TBD.Invalid non-empty string endpoints keep their original text. A value that is not a two-endpoint array, or contains an object endpoint that cannot be displayed, falls back to the original display flow as a whole.
Percentages and progress
percent / progress share numeric parsing, numberFormat and scale options. The example also shows date ranges, ratio inputs and completed progress.
| fieldProps field | Type | Default | Purpose |
|---|---|---|---|
percentScale | 'percent' | 'ratio' | 'percent' | With 'percent', 25 means 25%; with 'ratio', 0.25 means 25%. |
numberFormat | Intl.NumberFormatOptions | At most two decimal places | Percentage precision and presentation. |
locale | string | string[] | Current table locale | Intl language for the percentage text. |
showValue | boolean | true | progress only: shows the text or status icon on the right. |
status | ColumnValueStatus | Enum or automatic status | progress only: overrides progress status; see status tags for accepted values. |
import type { TableColumnType } from '@vtable-guild/vtable-guild'
const column: TableColumnType = {
dataIndex: 'share',
valueType: 'percent',
fieldProps: {
percentScale: 'ratio',
numberFormat: { minimumFractionDigits: 1, maximumFractionDigits: 1 },
},
}
// 0.125 displays as 12.5%.Progress values are clamped to 0–100. Status precedence is fieldProps.status, then the valueEnum status, then automatic status. The automatic status is processing before completion and success at 100. showValue: false hides the text and status icon while retaining progress semantics.
The default small progress bar has a 6px track, a width of 100–320px and 12px text, with icons for completion and errors. The current preset supplies its colors. Override the cellProgress / cellProgressTrack / cellProgressBar / cellProgressText slots or progress theme variables to customize its appearance. Regular and virtual rows share the same render path.
Status tags
tag uses the text and status from valueEnum; unknown enum values keep their original value. Both presets provide colors, borders and spacing.
| fieldProps field | Type / accepted values | Default | Purpose |
|---|---|---|---|
status | 'success' | 'warning' | 'error' | 'processing' | 'default' | Enum status, otherwise 'default' | Overrides the valueEnum status; these values also apply to progress. |
For more complex host UI tags, register a business renderer that returns an a-tag / el-tag component.
Registering application types
Register business types with createTableRenderers<TRecord>, then select them with the column's valueType. The member link below computes fieldProps per row and supplies tooltip text for a truncated name.
createTableRenderers merges the built-in types with business overrides and returns an immutable map. You can also pass a map containing only business types directly to the table; the remaining built-in renderers stay available. Each table uses its own map, so registrations do not affect other tables or SSR requests. An unknown valueType falls back to the enum label or raw value.
Callback context
fieldProps can be an options object or a function returning one. The function receives CustomRenderContext<TRecord>. A renderer receives TableFieldRenderContext<TRecord>, which extends that context with the enum display value, status, resolved options and locale.
| Field | Type | fieldProps callback | Renderer callback | Meaning |
|---|---|---|---|---|
text / value | unknown | ✓ | ✓ | Value after transformCellText, before enum mapping. |
record | TRecord | ✓ | ✓ | Current source row. |
column | ColumnType<TRecord> | ✓ | ✓ | Current column. |
index / renderIndex | number | ✓ | ✓ | Row index in the current render path. |
displayValue | VNodeChild | — | ✓ | Enum label or transformed default display value; booleans become text. |
status | ColumnValueStatus | — | ✓ | Current valueEnum status; may be undefined. |
fieldProps | TableFieldProps | — | ✓ | Static options or the options callback's result. |
locale | string | — | ✓ | Current table locale; may be undefined. Built-ins prefer fieldProps.locale. |
Business renderers consume custom options such as the example's tooltip. TableFieldProps allows additional fields of type unknown; convert or validate them as your business logic requires.
Content and display metadata
A renderer can return VNodeChild directly, including a string, number, VNode, array or null. To supply ellipsis tooltip text, status or themed presentation, return a TableFieldRenderResult object:
| Result field | Type | Purpose |
|---|---|---|
children | VNodeChild | Required display content. |
tooltipText | string | Plain text for an ellipsis tooltip. When omitted, text is derived only from scalar children; VNode text is not read. |
status | ColumnValueStatus | Display status. Return the context's status explicitly to preserve the enum status. |
presentation | 'tag' | 'progress' | Uses the theme's tag or progress appearance. When unset, a status uses the default status dot. |
progress | { percent: number; showValue: boolean } | Used with presentation: 'progress'; supplies a finite percentage from 0–100 and a text visibility flag. |
tooltipText is used for ellipsis tooltips: the column must enable ellipsis and allow showTitle, and the content must actually overflow. For general hover tooltips, use a host Tooltip component in the business renderer.
Images, avatars and links
Images, avatars and links can reuse the host components directly:
import { h } from 'vue'
import { Avatar, Image } from 'ant-design-vue'
import { createTableRenderers } from '@vtable-guild/vtable-guild'
const renderers = createTableRenderers({
avatar: ({ value }) => h(Avatar, { src: String(value), size: 32 }),
image: ({ value }) => h(Image, { src: String(value), width: 48 }),
link: ({ value, displayValue }) => h('a', { href: String(value) }, displayValue),
})Element Plus projects use ElAvatar / ElImage; the application is responsible for URL validation, placeholder images and the image preview policy.
Combining with existing display features
transformCellTexttransforms the value first; enums and field renderers consume that transformed value.customRenderand a validbodyCellslot take precedence; the field renderer is used when there is no valid slot content.null / undefinedusecolumnEmptyTextand do not call the field renderer;0 / false / ''are kept.- Sorting and filtering keep using the source records, and field display never rewrites the data.
filters: truestill generates filter items from the samevalueEnum. - Copying uses the transformed raw scalar value by default and does not copy the currency symbol or enum label. Use
copyable.textto change the copied content explicitly.
Without valueType, the existing cell display flow is kept. Renderers only handle read-only display; query controls and editors are composed by the application with its existing UI library.
API
TRecord is the application row type. See the API Reference for the table's full configuration.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
renderers | TableFieldRenderers<TRecord> | Built-in mapping | Overrides or extends the read-only renderers for valueType per table. |
columnEmptyText | VNodeChild | false | false | Replaces null or undefined cell values; zero, false and empty strings are kept. |
transformCellText | TransformCellText<TRecord> | - | Transforms cell text in one place; opt contains text, column, record and index. |
Column fields
| Field | Type | Default | Description |
|---|---|---|---|
valueType | string | - | Specifies a built-in field render type or a registered custom type. |
fieldProps | TableFieldProps | ((context: CustomRenderContext<TRecord>) => TableFieldProps) | - | Configures the field renderer. Accepts an object or a function that returns the configuration from the cell context. |
valueEnum | ColumnValueEnum | - | Maps raw values to display text and status. Accepts an object or a Map. |
customRender | (ctx: CustomRenderContext<TRecord>) => VNodeChild | RenderedCell | - | Custom body cell content. Returning a RenderedCell sets both the content and the cell attributes. |
Slots
| Slot | Payload type | Description |
|---|---|---|
bodyCell | TableBodyCellSlotProps<TRecord> | Custom cell content. |
Theming
The classes of field tags and the progress bar can be overridden with the per-instance ui or the global theme.table.slots. To adjust colors or sizes, use the CSS variables below. See Three-layer theme overrides for the override order.
ui slots
| Slot | Description |
|---|---|
cellStatus | valueEnum status marker, colored by data-status. |
cellTag | Tag appearance for valueType: 'tag' or a renderer with presentation: 'tag'. |
cellProgress | Overall progress width and the gap between the track and the value. |
cellProgressTrack | Track height, radius and background. |
cellProgressBar | Fill color; supports data-status states. |
cellProgressText | Percentage text or the success / error icon. |
Preset defaults
Switch between the default classes of the two presets with the tabs below. For how to override utilities in the default precompiled mode, see prefix and override rules.
createVTableGuild({
theme: {
table: {
slots: {
cellStatus: "inline-flex items-center gap-1 before:content-[''] before:size-1.5 before:rounded-full before:bg-[color:var(--color-muted)] [&[data-status=success]]:before:bg-[color:var(--vtg-cell-success)] [&[data-status=warning]]:before:bg-[color:var(--vtg-cell-warning)] [&[data-status=error]]:before:bg-[color:var(--vtg-cell-error)] [&[data-status=processing]]:before:bg-[color:var(--color-primary)]",
cellTag: 'inline-flex items-center whitespace-nowrap border border-[color:var(--vtg-cell-tag-border)] rounded-[var(--vtg-cell-tag-radius)] px-[var(--vtg-cell-tag-padding-inline)] text-[length:var(--vtg-cell-tag-font-size)] leading-[var(--vtg-cell-tag-line-height)] bg-[color:var(--vtg-cell-tag-bg)] text-[color:var(--color-muted)] [&[data-status=success]]:text-[color:var(--vtg-cell-success)] [&[data-status=warning]]:text-[color:var(--vtg-cell-warning)] [&[data-status=error]]:text-[color:var(--vtg-cell-error)] [&[data-status=processing]]:text-[color:var(--color-primary)]',
cellProgress: 'inline-flex w-full min-w-[var(--vtg-cell-progress-min-width)] max-w-[var(--vtg-cell-progress-max-width)] items-center gap-[var(--vtg-cell-progress-gap)] align-middle',
cellProgressTrack: 'block min-w-0 flex-1 overflow-hidden h-[var(--vtg-cell-progress-height)] rounded-[var(--vtg-cell-progress-radius)] bg-[color:var(--vtg-cell-progress-trail)]',
cellProgressBar: 'block h-full rounded-[var(--vtg-cell-progress-radius)] bg-[color:var(--color-primary)] [&[data-status=success]]:bg-[color:var(--vtg-cell-success)] [&[data-status=warning]]:bg-[color:var(--vtg-cell-warning)] [&[data-status=error]]:bg-[color:var(--vtg-cell-error)]',
cellProgressText: 'shrink-0 tabular-nums text-[length:var(--vtg-cell-progress-font-size)] text-[color:var(--color-on-surface)] [&[data-status=success]]:text-[color:var(--vtg-cell-success)] [&[data-status=error]]:text-[color:var(--vtg-cell-error)] [&>svg]:inline-block [&>svg]:align-middle',
},
},
},
})createVTableGuild({
themePreset: 'element-plus',
theme: {
table: {
slots: {
cellStatus: "inline-flex items-center gap-1 before:content-[''] before:size-1.5 before:rounded-full before:bg-[color:var(--color-muted)] [&[data-status=success]]:before:bg-[color:var(--vtg-cell-success)] [&[data-status=warning]]:before:bg-[color:var(--vtg-cell-warning)] [&[data-status=error]]:before:bg-[color:var(--vtg-cell-error)] [&[data-status=processing]]:before:bg-[color:var(--color-primary)]",
cellTag: 'inline-flex items-center whitespace-nowrap border border-[color:var(--vtg-cell-tag-border)] rounded-[var(--vtg-cell-tag-radius)] px-[var(--vtg-cell-tag-padding-inline)] text-[length:var(--vtg-cell-tag-font-size)] leading-[var(--vtg-cell-tag-line-height)] bg-[color:var(--vtg-cell-tag-bg)] text-[color:var(--color-muted)] [&[data-status=success]]:text-[color:var(--vtg-cell-success)] [&[data-status=warning]]:text-[color:var(--vtg-cell-warning)] [&[data-status=error]]:text-[color:var(--vtg-cell-error)] [&[data-status=processing]]:text-[color:var(--color-primary)]',
cellProgress: 'inline-flex w-full min-w-[var(--vtg-cell-progress-min-width)] max-w-[var(--vtg-cell-progress-max-width)] items-center gap-[var(--vtg-cell-progress-gap)] align-middle',
cellProgressTrack: 'block min-w-0 flex-1 overflow-hidden h-[var(--vtg-cell-progress-height)] rounded-[var(--vtg-cell-progress-radius)] bg-[color:var(--vtg-cell-progress-trail)]',
cellProgressBar: 'block h-full rounded-[var(--vtg-cell-progress-radius)] bg-[color:var(--color-primary)] [&[data-status=success]]:bg-[color:var(--vtg-cell-success)] [&[data-status=warning]]:bg-[color:var(--vtg-cell-warning)] [&[data-status=error]]:bg-[color:var(--vtg-cell-error)]',
cellProgressText: 'shrink-0 tabular-nums text-[length:var(--vtg-cell-progress-font-size)] text-[color:var(--color-on-surface)] [&[data-status=success]]:text-[color:var(--vtg-cell-success)] [&[data-status=error]]:text-[color:var(--vtg-cell-error)] [&>svg]:inline-block [&>svg]:align-middle',
},
},
},
})CSS variables
The table lists the defaults in light mode. Dark mode can be overridden separately through .dark.
| Variable | Purpose | antdv | element-plus |
|---|---|---|---|
--color-primary | Theme primary color, used for drag handle hover, button highlights, field states and more | #1677ff | #409eff |
--vtg-cell-tag-radius | Tag radius | 4px | 4px |
--vtg-cell-tag-padding-inline | Tag horizontal padding | 7px | 9px |
--vtg-cell-tag-font-size | Tag font size | 12px | 12px |
--vtg-cell-tag-line-height | Tag line height | 20px | 22px |
--vtg-cell-tag-bg | Tag background; mixed from the current status color by default | color-mix(in srgb, currentcolor 8%, var(--vtg-table-bg)) | color-mix(in srgb, currentcolor 10%, var(--vtg-table-bg)) |
--vtg-cell-tag-border | Tag border color | color-mix(in srgb, currentcolor 30%, transparent) | color-mix(in srgb, currentcolor 30%, transparent) |
--vtg-cell-success | Field success status color | #52c41a | #67c23a |
--vtg-cell-warning | Field warning status color | #faad14 | #e6a23c |
--vtg-cell-error | Field error status color; also used for query and editing validation text | #ff4d4f | #f56c6c |
--vtg-cell-progress-min-width | Minimum width of the progress component | 100px | 100px |
--vtg-cell-progress-max-width | Maximum width of the progress component | 320px | 320px |
--vtg-cell-progress-height | Track height | 6px | 6px |
--vtg-cell-progress-radius | Track radius | 100px | 100px |
--vtg-cell-progress-gap | Gap between the track and the text | 8px | 8px |
--vtg-cell-progress-font-size | Progress text font size | 12px | 12px |
--vtg-cell-progress-trail | Track background | color-mix(in srgb, var(--color-on-surface) 6%, transparent) | var(--color-default) |
Type Declarations
View type declarations
/** ColumnType / TableProps 节选;枚举与状态继续使用同一份 valueEnum。 */
export interface FieldRendererColumnFields<TRecord extends object = Record<string, any>> {
valueType?: string
fieldProps?: TableFieldProps | ((context: CustomRenderContext<TRecord>) => TableFieldProps)
}
export interface FieldRendererTableFields<TRecord extends object = Record<string, any>> {
renderers?: TableFieldRenderers<TRecord>
}export { createTableRenderers } from '@vtable-guild/vtable-guild'
/** Options shared by the built-in formatters; custom renderers may add their own fields. */
export interface TableFieldProps {
locale?: string | string[]
numberFormat?: Intl.NumberFormatOptions
/** Default date output is YYYY-MM-DD; an explicit options object enables Intl formatting. */
dateFormat?: Intl.DateTimeFormatOptions
/** Currency used by money; defaults to CNY. */
currency?: string
/** percent/progress input scale. Default 'percent' (25 means 25%); 'ratio' uses 0..1. */
percentScale?: 'percent' | 'ratio'
/** Range display separator and missing-endpoint placeholder. Defaults to ' ~ ' and '—'. */
rangeSeparator?: string
rangeEmptyText?: string
/** Show the progress percentage next to its track. Default true. */
showValue?: boolean
/** tag and progress reuse the same status tokens as valueEnum. */
status?: ColumnValueStatus
[key: string]: unknown
}
export interface TableFieldRenderContext<
TRecord extends object = Record<string, unknown>,
> extends CustomRenderContext<TRecord> {
/** The enum label, or the transformed scalar value when no enum matches. */
displayValue: VNodeChild
/** Resolved from valueEnum, preserving Map key identity. */
status?: ColumnValueStatus
fieldProps: TableFieldProps
/** Current table locale; a field's locale option takes precedence. */
locale?: string
}
export interface TableFieldRenderResult {
children: VNodeChild
/** Explicit plain text for ellipsis tooltips; VNodes are never stringified. */
tooltipText?: string
/** Uses the existing theme status slot. */
status?: ColumnValueStatus
/** Render with the theme's tag or progress appearance instead of a status dot. */
presentation?: 'tag' | 'progress'
/** A finite percentage in 0..100; rendered through the table's progress theme slots. */
progress?: { percent: number; showValue: boolean }
}
export type TableFieldRenderer<TRecord extends object = Record<string, unknown>> = (
context: TableFieldRenderContext<TRecord>,
) => VNodeChild | TableFieldRenderResult
/** A registry is local to a table or application; no process-wide mutable registry is used. */
export type TableFieldRenderers<TRecord extends object = Record<string, unknown>> = Readonly<
Record<string, TableFieldRenderer<TRecord>>
>