Data

Add and configure the Data component in a Docmino document.

When to use

Use Data to define reusable inline or remote structured data for tables, charts, and calculations.

Props

Name⇅
Type⇅
Description⇅
label
string
The reader-facing label for the component.
hidden
boolean
Hides the visual output while keeping its data available.
source
expression
The inline data or remote source configuration.
visibleWhen
expression
A condition that controls when the component is visible.

Examples

Inline

Monthly revenue
month⇅
revenue⇅
Jan
5000
Feb
7000
Mar
6000
<Data label="Monthly revenue" source={{ type: "data", data: [ { month: "Jan", revenue: 5000 }, { month: "Feb", revenue: 7000 }, { month: "Mar", revenue: 6000 }, ], }} />

Hidden

<Data label="Product mix" hidden source={{ type: "data", data: [ { product: "Product A", sales: 40 }, { product: "Product B", sales: 30 }, { product: "Product C", sales: 30 }, ], }} />