SettingsLayout
Responsive split or collapsible layout for settings navigation and content
Import
import { SettingsLayout } from '@tallyui/components';Usage
<SettingsLayout
headerSlot={<Header />}
navSlot={<SettingsNav />}
contentSlot={<SettingsContent />}
/>On wide screens, renders a fixed-width navigation sidebar alongside the main content area. On narrow screens, collapses to a single-pane view with a "Menu" button that toggles the navigation overlay. The layout mode can be forced via the layout prop or left to respond automatically based on the breakpoint.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
navSlot | ReactNode | required | Navigation menu content |
contentSlot | ReactNode | required | Main settings content |
headerSlot | ReactNode | --- | Optional top header bar |
layout | 'split' | 'stacked' | auto | Force a layout mode instead of using the breakpoint |
breakpoint | number | 768 | Width threshold for switching between split and stacked |
className | string | --- | Override container styles |
Slots
| Slot | Purpose |
|---|---|
navSlot | Settings navigation menu (left sidebar in split, toggleable overlay in stacked) |
contentSlot | Main settings content area (right side in split, primary view in stacked) |
headerSlot | Top bar rendered above the layout with a bottom border |
CheckoutLayout
CheckoutLayout arranges summary and payment slots side by side or stacked by breakpoint, with an optional header and forced layout mode.
I18nProvider
I18nProvider sets the language of Tally UI's components from the store's locale or the device, with English bundled and other languages passed in by the app; useT reads a string by its key.