List
Readable rows for named things such as jobs, assets, runs, and DAGs.
On this page
Props
| Prop | Type | Default | Description |
|---|---|---|---|
source | DataSource | None | Resource binding that supplies the rows |
data | readonly Record<string, unknown>[] | None | Inline rows (alternative to source) |
item required | ListItem | None | Row fields that fill the title, description, badge, meta, icon, and status |
rowLink | TableRowLink | None | Link each row to a route |
rowActions | readonly TableRowAction[] | None | Actions with variant: "primary" and an icon appear as row buttons. The rest open from the overflow menu. |
searchable | boolean | None | Add a search box that matches the title, description, badge, and meta |
noun | string | None | Singular noun for the count and the search placeholder, such as "job" |
filters | readonly ListFilter[] | None | Filter dropdowns, each bound to a row field |
pageSize | number | None | Rows shown before a "Show more" button. All rows when omitted. |
emptyMessage | string | None | Text shown when there are no rows |
Example
ts
List({
source: jobs(),
item: {
title: "name",
description: "schedule",
badge: "type",
status: { label: "state", detail: "lastRun" },
},
searchable: true,
noun: "job",
})Supporting types
ListItem
export interface ListItem {
/** Main line, shown in bold. */
title: string;
/** Second line under the title. */
description?: string;
/** Short tag beside the title, such as a type or category. */
badge?: string;
/** Muted details joined after the description, such as an owner. */
meta?: readonly string[];
/** Icon shown before the item; an SDK icon name such as `"grid"`. */
icon?: string;
/** Status shown at the trailing edge, above an optional detail. */
status?: {
label: string;
/**
* Field holding a tone: healthy, warning, unavailable, info, or muted.
* When omitted or empty, common status words in the label pick the
* tone, so "success" is healthy and "failed" is unavailable.
*/
tone?: string;
/** Secondary line under the status, such as a timestamp. */
detail?: string;
};
}ListFilter
export interface ListFilter {
field: string;
label: string;
/** Choices to offer; each distinct value of the field when omitted. */
options?: readonly { label: string; value: string }[];
}