Skip to main content

Div

Type: div

Container for grouping child elements.

Supports children: Yes

A generic container for grouping elements. Can contain any child components. Defaults to a flex column.

Example

{
"type": "div",
"props": { "style": "display: flex; gap: 8px; padding: 16px" },
"children": [
{ "type": "text-input", "props": { "label": "Name", "param": "name" } },
{ "type": "button", "props": { "label": "Submit", "param": "submit" } }
]
}

Every widget is defined as { "type": "div", "props": { ... } }. The properties below describe the props object.

Props

Loading ....

Raw schema

Download the full schema file: /widget-schema/div.json