MDK Logo
ReferenceUIComponents

Navigation Components

Sidebars, tabs, breadcrumbs, and navigation menus

Components for application navigation.

Prerequisites

  • Complete the installation
  • Import styles: import '@tetherto/mdk-react-devkit/styles.css'

Components

AppHeader

Generic top-bar shell with three slots: start, children (middle), and actions (end). Renders a sticky dark surface; consumers compose any content into the slots. The sidebar collapse toggle, br…

agent-ready

Props

PropTypeRequiredDefaultDescription
logoReact.ReactNode-Left-most slot — typically the app's brand lockup / logo.
startReact.ReactNode-Left-edge content — e.g. a sidebar collapse toggle button.
childrenReact.ReactNode-Middle slot — typically the dashboard's stats strip.
actionsReact.ReactNode-Right-edge action cluster — e.g. alarms bell, profile menu.
classNamestring | undefined-Optional class hook for the outer <header> element.
stickyboolean | undefined-Render the header sticky to the top of its scroll container. Defaults to true.

Hierarchical navigation trail that renders the path of pages leading to the current view. Each item can be a link (href or onClick) or plain text; the last item is rendered as the current page. P…

agent-ready

Props

PropTypeRequiredDefaultDescription
itemsBreadcrumbItem[]--
showBackboolean | undefined--
backLabelstring | undefined--
classNamestring | undefined--
itemClassNamestring | undefined--
backClassNamestring | undefined--
onBackClickVoidFunction | undefined--
separatorReact.ReactNode--

Pagination

Pagination component for navigating through pages

agent-ready

Props

PropTypeRequiredDefaultDescription
currentnumber | undefined-Current active page number
totalnumber | undefined-Total number of items
pageSizenumber | undefined20Number of items per page
pageSizeOptionsnumber[] | undefined[10, 20, 50, 100]Page size options for the select dropdown
showSizeChangerboolean | undefinedtrueShow page size changer
showTotalboolean | undefinedfalseShow total count text
disabledboolean | undefinedfalseDisable pagination
sizeComponentSize | undefined'sm'Size variant
classNamestring | undefined-Custom className for the root element
onChange((page: number, pageSize: number) => void) | undefined-Callback when page number or page size changes
onSizeChange((current: number, size: number) => void) | undefined-Callback when page size changes

Application sidebar with collapsible state, persistent expansion (via localStorage), optional overlay mode, and item-click + active-item highlighting.

agent-ready

Props

PropTypeRequiredDefaultDescription
activeIdstring | undefined--
expandedboolean | undefined--
visibleboolean | undefined--
overlayboolean | undefined--
classNamestring | undefined--
defaultExpandedboolean | undefined--
headerReact.ReactNode--
onCloseVoidFunction | undefined--
onExpandedChange((expanded: boolean) => void) | undefined--
onItemClick((item: SidebarMenuItem) => void) | undefined--
itemsSidebarMenuItem[]--

On this page