ZUI

Search documentation

Find a page or a heading.

Panel row

One row of a property section, its fields beside a trailing action column that keeps every row's right edge aligned.

Installation

bash

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

Usage

tsx
tsx

Compose a Panel field group for the fields. The row keeps its action column whether a PanelRowAction is composed or not, so every row in the panel keeps the same right edge.

Composition

text

API reference

PanelRow

Takes every prop of React Native's View. One row of a property section: everything but the action goes in a leading column that takes the room left, and the action column after it is at least one default icon button (size="icon") wide. The fields and the action line up at their bottom edge. It finds the action by its element, so pass PanelRowAction itself, not inside a component of your own.

PanelRowAction

Takes every prop of React Native's View. The trailing action of a PanelRow, such as an aspect-lock toggle or a reset button, centred in its column.

Differences from the web

  • The web row is a CSS grid whose template a grid-cols-* class or the --panel-row-columns variable can replace; React Native has no grid, so the two columns are fixed.