Tally UI

SettingsRow

SettingsRow lays out a label and optional description beside an action slot, designed for stacking inside a SettingsGroup.

Import

import { SettingsRow, Switch } from '@tallyui/components';

Usage

<SettingsRow
  label="Dark Mode"
  description="Toggle the app's color scheme"
  action={<Switch checked={darkMode} onCheckedChange={setDarkMode} />}
/>

Renders a horizontal row with a text label and optional description on the left, and an action widget on the right. Designed to be stacked inside a SettingsGroup.

Props

PropTypeDefaultDescription
labelstringrequiredPrimary text label
descriptionstring---Secondary description text below the label
actionReactNode---Widget rendered on the right side (switch, button, etc.)
classNamestring---Override container styles

Live demo