Value
Single field from a data source.
On this page
Props
| Prop | Type | Default | Description |
|---|---|---|---|
source | DataSource | None | Resource binding |
field required | string | None | Field name to extract |
format | ValueFormat | "text" | Display format |
fallback | string | None | Shown when value is missing |
Example
ts
Value({ source: status(), field: "url" })
Value({ source: metrics(), field: "bytes", format: "bytes", fallback: "N/A" })Supporting types
ValueFormat
export type ValueFormat = "text" | "number" | "bytes";