Skip to content

Application shell

Messages layout

Shell for the messaging surface that pairs the left space-switcher nav with the conversation sidebar and thread area, adapting to inbox and thread views on mobile.
Available
Ports as-is

Examples

Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.

Messages layout

Rendered live from Storybook

Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.

Props

The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.

PropTypeDefaultDescription
children*React.ReactNode—Undocumented — add TSDoc to the prop in the library.
inboxModebooleanfalseMobile-only: when true, the messages list (sidebar) is the primary content, rendered inside a keyframe (no main content visible). Used for the inbox route. When false, the conversation thread takes over the full screen on mobile.

Reference

Transcribed from the component audit. If this disagrees with the source, the source is right.

Source
src/components/layout/MessagesLayout.tsx
Portability
Copies across unchanged — only the utils import path moves.
Notes
Wrap messages routes in it; pass inboxMode on mobile to show the conversation list as primary content, or omit it to let a selected thread take over the full screen. On desktop it always renders the nav plus a toggleable sidebar alongside the thread.