Skip to content
nexubDesign System
v2.4.0

Patterns · Layout

List Detail

Since v1.5.0

The list-detail layout: side by side at 720px+ of its own width (a container query), one pane at a time below.

import { ListDetail } from '@nexub/patterns';

Examples

Default

Props

Props
PropTypeDefaultDescription
list / detailrequiredReactNode—The two panes.
showDetailbooleanfalseWhen narrow, show the detail instead of the list (set it on selection).
onBack() => void—Back button, shown only when narrow.
listWidth'sm' | 'md' | 'lg''md'Fixed list width when both panes show (288 / 320 / 400px).