Appearance
io.display.metadata
Represents a display.metadata component. The metadata component displays a grid of key value pairs to represent metadata details.
Usage
ts
await io.display.metadata("Order Details",{
layout: "card",
data: [
{
label: "ID",
value: "O1-49293420",
},
{
label: "Email",
value: "[email protected]",
},
{
label: "Address",
value: "123 Forge St",
},
],
});
python
await io.display.metadata("Order Details",
layout = "card",
data = [
{"label": "ID", "value": "O1-49293420"},
{"label": "Email", "value": "[email protected]"},
{"label": "Address", "value": "123 Forge St"},
],
)