Skip to content

Main-Detail Container

Main-detail is a layout pattern that shows a list of items and the corresponding details of the selected item. It allows users to stay focused on the main content while accessing and editing related details without loosing context.

Usage

Use this layout when viewing details from an item in a large list or group on the same page is required.

The content in the main container such as list, data table or simple navigation is used to control the information shown in the details container.

Selecting an item from the main container opens the detail view. The user can select another item from the main container to switch content of the detail container.

Main-detail layouts are optimized for wider screens, while also incorporating a responsive behavior to adapt to various screen sizes.

Main-detail

When to Use

  • For navigating through hierarchical data structures, making it easier for users to explore and understand content.
  • When there's a need to navigate through large amounts of data or items but only focus on one item at a time.
  • In scenarios where users might need to switch quickly between items without losing context.

Except where otherwise noted, content on this site is licensed under MIT License.