GitHub

Master Detail

Two-panel layout with a master list on the left and a detail view on the right. On mobile, panels stack vertically. Ideal for admin interfaces, email clients, and file managers.

Basic

Preview
Inbox 3 new messages
Sent 12 messages
Drafts 2 drafts
Archive 156 messages

Inbox

3 new messages

Select a message to view its content here.

With Empty State

Preview

Contacts

Alice Johnson
Bob Smith
🙋

No Contact Selected

Select a contact from the list to view details.

With Detail Content

Preview
Orders
ORD-001 $245.00 — Pending
ORD-002 $128.50 — Shipped
ORD-003 $89.99 — Delivered

Order ORD-001

Pending
Customer
John Doe
Date
Feb 7, 2026
Total
$245.00
Items
3 products

Width Variants

Preview
Narrow
240px width
Narrow master panel gives more space to detail.
Wide
350px width
Wide master panel for richer list content.

Classes Reference

Class Description
.master-detailBase container (flex row, full height)
.master-detail-full100dvh height
.master-detail-has-navbarHeight minus navbar
.master-detail-masterLeft panel (fixed width)
.master-detail-master-headerMaster header area
.master-detail-master-contentScrollable master content
.master-detail-master-footerMaster footer area
.master-detail-detailRight panel (flex: 1)
.master-detail-detail-headerDetail header area
.master-detail-detail-contentScrollable detail content
.master-detail-detail-footerDetail footer area
.master-detail-emptyCentered empty state
.master-detail-empty-iconEmpty state icon
.master-detail-empty-titleEmpty state title
.master-detail-empty-textEmpty state description
.master-detail-narrowNarrow master (240px)
.master-detail-wideWide master (350px)
.master-detail-collapsibleCollapsible master on mobile
.master-detail-master-openOpen master on mobile (with collapsible)
.master-detail-mobile-master-onlyHide detail on mobile
.master-detail.glassGlassmorphism variant