Genesis
@beta

appShellOptionsFromTheme

The `AppShell` options an app theme starts from (`theme.layout`: navigation, frame, density, rail width, a collapsed rail, sub-navigation), to spread under the app's own: ```tsx <AppShell options={{ ...appShellOptionsFromTheme(theme), scrollRoot: "window" }} … /> ``` Nothing for no theme, or one that leaves the layout alone, so the app's options and their defaults stand. These are defaults: where the shell is `configurable`, the person's own choice still wins.

packages/ui/src/themes/layout.ts

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

appShellOptionsFromTheme

The `AppShell` options an app theme starts from (`theme.layout`: navigation, frame, density, rail width, a collapsed rail, sub-navigation), to spread under the app's own: ```tsx <AppShell options={{ ...appShellOptionsFromTheme(theme), scrollRoot: "window" }} … /> ``` Nothing for no theme, or one that leaves the layout alone, so the app's options and their defaults stand. These are defaults: where the shell is `configurable`, the person's own choice still wins.

PropTypeDefaultDescription
layoutAppThemeLayout—