Tally UI

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

PropTypeDefaultDescription
navSlotReactNoderequiredNavigation menu content
contentSlotReactNoderequiredMain settings content
headerSlotReactNode---Optional top header bar
layout'split' | 'stacked'autoForce a layout mode instead of using the breakpoint
breakpointnumber768Width threshold for switching between split and stacked
classNamestring---Override container styles

Slots

SlotPurpose
navSlotSettings navigation menu (left sidebar in split, toggleable overlay in stacked)
contentSlotMain settings content area (right side in split, primary view in stacked)
headerSlotTop bar rendered above the layout with a bottom border

On this page