Skip to main content
Brand and assets
Build
Monitor and contribute
/
Patterns & layouts
  • Overview
  • Layouts
  • PageLayout
  • FullPageLayout
  • Patterns
  • Forms & density
  • Composition (asChild)
  • Rich components
  • DataTable
    • useDataTable
    • DataTable
    • Examples
  • Overview

Patterns & layouts

Layouts and patterns are built from components: they define the overall structure of a screen, where the header, title, actions, content and footer go, and how they respond together.

Layouts​

Unlike the low-level Murray layout components, a layout wraps those primitives into a ready-to-use shell so every page in a surface looks and behaves the same. You give it a title, some actions and your content; it handles the spacing, responsive grid and the surrounding chrome.

Most layouts are built on top of Murray's layout utilities (makeLayout), which means they expose slots: named placeholders you can fill from anywhere in the subtree with <Layout.SlotContent name="...">. This lets a deeply nested component contribute to the footer or the actions area without prop drilling.

The layouts below build pages in the customer dashboard (the admin experience where an account manages its members, contracts and settings). Start here when building a new dashboard page.

PageLayout

The standard page shell with a title, description, top actions, search, tabs and filters.

FullPageLayout

A full-page, modal-like shell for focused flows (e.g. multi-step forms), with a header and an optional fixed footer.

Patterns​

Forms & density

Standard or condensed density, depending on the product.

Composition

Use asChild to compose Murray's behavior onto your own components.

Rich components​

DataTable

Headless-first data table: useDataTable owns state, DataTable renders it.

Edit this page
Next
PageLayout
  • Layouts
  • Patterns
  • Rich components