Genesis
@stable

ResourceSettingsPage

Every setting of one thing (a form, a course, a worksheet) on one page: jump links on the left ("On this page", the one in view marked), the sections as cards on the right. On a phone the links sit above the sections as a row that scrolls sideways. Not genesis-ui's `SettingsPage`: that one is a whole page with its own title, and plain sections; these settings sit under the resource's header, as cards with icons.

packages/ui/src/components/resource/ResourceSettingsPage.tsx

Import
Subpath export: @marktiderman/genesis-ui
import { ResourceSettingsPage } from "@marktiderman/genesis-ui";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

SettingsSection

One group of settings as a card: an icon, a title and a sentence, then its rows (genesis-ui `SettingsRow` and `ToggleRow`: a label, a one-sentence description and the control), divided by lines. On a phone a row whose control isn't a switch puts the control under its label, so wide controls (a link, a list of people) still fit.

PropTypeDefaultDescription
title*ReactNode—
classNamestring—
descriptionReactNode—
iconReactNode—
idstring—The jump link's target.

ResourceSettingsPage

Every setting of one thing (a form, a course, a worksheet) on one page: jump links on the left ("On this page", the one in view marked), the sections as cards on the right. On a phone the links sit above the sections as a row that scrolls sideways. Not genesis-ui's `SettingsPage`: that one is a whole page with its own title, and plain sections; these settings sit under the resource's header, as cards with icons.

PropTypeDefaultDescription
sections*readonly ResourceSettingsSection[]—
classNamestring—
navLabelstringOn this page