Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

SettingsRow

Open .md
Live preview

Loading example…

SettingsRow is part of the Containers set, imported from @jcsoftdev/ui/containers.

import { SettingsRow } from "@jcsoftdev/ui/containers";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/containers/settings-row.

<SettingsRow
title="Recordatorio por WhatsApp"
description="Se envía al cliente 2 horas antes de la cita."
control={<Switch defaultChecked aria-label="Recordatorio por WhatsApp" />}
/>
Prop Type Default Description
title * ReactNode
description ReactNode
control ReactNode Control on the right: a switch, a button, etc.
titleId string Id for the title element, so the control can reference it with aria-labelledby.
classNames Partial<Record<SettingsRowPart, string>> Per-part classes merged with cn; consumer classes win. className still targets the root and is merged last.
intent string
intentKey string

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/containers/settings-row/settings-row.tsx