ZUI

Search documentation

Find a page or a heading.

Panel field group

The tight grid for paired and triplet inputs in a property panel, with any number of columns.

Installation

bash

The CLI writes components/layout/panel-field-group.tsx and installs Utils.

Usage

tsx
tsx

Omit cols for one column. Use it for paired or tripled inputs (X + Y, W + H) in a property panel; for a single row that also needs a trailing action, wrap it in Panel row.

API reference

PanelFieldGroup

Takes every prop of React Native's View, plus:

It lays its children in rows of cols, each child in an equal share of its row, 8px apart, and the rows 4px apart. A short last row is filled with empty cells, so the columns line up. className styles the group.

Differences from the web

  • React Native has no grid, so a grid-cols-* class does not replace the columns; set cols.
  • The web writes cols to a --cols variable in style; here style goes to the group as given.