SettingsRow
Overlays

SettingsRow

One setting: label + description on the left, control on the right.

SettingsRow pairs a setting label and description with its control. Use htmlFor to associate the label with an input.

Import

TSX
import { SettingsRow } from "@solarius/onset";

Props

SettingsRowProps props
PropTypeDefaultDescription
labelReactNode—The setting's name.
descriptionReactNode—Dim explanatory line under the label.
htmlForstring—Renders the label as a <label> bound to this control id.
stackedboolean—Stacks the control under the label (for wide inputs and textareas).
childrenReactNode—The control(s), right-aligned unless stacked.

Example

SettingsRow