Skip to content

List-detail layout

Pro

M3's list-detail canonical layout, sized by its own width: one pane at a time below 840px, the list beside the open item from 840px. For settings, an inbox or a dashboard. Not an M3 component (@windmorph/react-pro).

import { ListDetailLayout } from '@windmorph/react-pro';

Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.

Playground

Profile

Name, photos, bio and languages

Code

import { IconButton, List, ListItem } from '@windmorph/react';// Use your own icon components.import { ArrowBackIcon } from './icons';import { ListDetailLayout } from '@windmorph/react-pro'; <ListDetailLayout  variant="filled"  active="list"  back={<IconButton variant="standard" aria-label="Back to settings" icon={<ArrowBackIcon />} href="/settings" />}  listLabel="Preferences"  detailLabel="Preference"  list={(    <List aria-label="Settings sections">      <ListItem href="/settings/profile">Profile</ListItem>      <ListItem href="/settings/account">Account</ListItem>      <ListItem href="/settings/privacy">Privacy</ListItem>    </List>  )}  detail={<p className="p-4 text-body-large">Name, photos, bio and languages</p>}/>

Examples

Settings

An inbox, with filled panes