Settings group
Notifications
What we email you about.
PlanBilled monthly.
Starter
Language
English
npx shadcn add @klarhimmel/settingsCopy for AIDetailsAbout, usage, props and more
A title, an optional description and one card of rows ruled by hairlines. The home of every settings screen; its rows answer its own width.
Preview
Settings group
Import
Import
- Files
- settings.tsx, in components/klarhimmel/ui/. With it: button, card, input, switch, theme, utils.
- Render in
- Render it inside <Theme>, once near the root of your app. Tokens and fonts are scoped to it, so outside it the component is unstyled.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
SettingsGroup.title | ReactNode | - | The group heading; also names the section. |
SettingsGroup.description | ReactNode | - | One line under the heading. |
SettingsGroup.className | string | - | Extra classes, merged after the component's own. |
SettingsGroup.children | ReactNode | required | The rows. |
SettingsRow.label | ReactNode | required | |
SettingsRow.description | ReactNode | - | One line under the heading. |
SettingsRow.id | string | - | |
SettingsRow.className | string | - | Extra classes, merged after the component's own. |
SettingsRow.children | ReactNode | - | The rows. |