MDK Logo
ReferenceUI KitReactUI Kit foundationComponentsFeatures

ExplorerLayout

Explorer split-view shell: a header, a scrollable list column, and a sticky detail column that appears when a row is selected (stacking on narrow viewports).…

Explorer split-view shell: a header, a scrollable list column, and a sticky detail column that appears when a row is selected (stacking on narrow viewports). Purely presentational — the page supplies the list (tabs + table) and the detail panel, and owns selection/routing state.

import { ExplorerLayout } from "@tetherto/mdk-react-devkit";
PropStatusTypeDefaultDescription
titleOptionalstring | undefinedPage heading.
headerActionsOptionalReact.ReactNodeOptional header controls (export button, etc.) shown next to the title.
listRequiredReact.ReactNodeThe list column — typically a tab switch plus the device/container table.
detailOptionalReact.ReactNodeThe detail column content (shown in the sticky panel when `hasSelection`).
hasSelectionOptionalboolean | undefinedWhen true the layout splits into list (70%) + a sticky detail column (30%); otherwise the list fills the width. Driven by whether a row is selected.
classNameOptionalstring | undefined

Usage

Explorer split-view shell: a header, a scrollable list column, and a sticky detail column that appears when a row is selected (stacking on narrow viewports). Purely presentational — the page supplies the list (tabs + table) and the detail panel, and owns selection/routing state.

Notes

  • The detail column is sticky on wide viewports and stacks below the list under ~992px.
  • The layout does not fetch data or own selection state — wire it in the shell page to the explorer read hooks and URL/selection state.

Example

/** * Runnable example for the ExplorerLayout feature. */import { ExplorerLayout } from "@tetherto/mdk-react-devkit"export const ExplorerLayoutExample = () => (  <ExplorerLayout    title="Explorer"    hasSelection    list={<div>List / table goes here</div>}    detail={<div>Selected-item details go here</div>}  />)