KeyValue
Key-value pairs from a resource or inline data.
On this page
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | None | Heading text |
field | string | None | Field of the resource result that holds the key-value object |
source | DataSource | None | Resource binding |
data | Readonly<Record<string, unknown>> | None | Inline data (alternative to source) |
Example
ts
KeyValue({ source: config(), title: "Configuration" })
KeyValue({ data: { host: "localhost", port: 5432 }, title: "Connection" })