MDX.org.ai
UI ComponentsLayout

Page

Generic page wrapper with title, SEO, and layout options

Generic page wrapper that provides consistent structure, SEO metadata, and layout options.

Structure

┌─────────────────────────────────────────────────────┐
│ root                                                │
│ ┌─────────────────────────────────────────────────┐ │
│ │ header                                          │ │
│ │ ┌─────────────────────────────────────────────┐ │ │
│ │ │ breadcrumbs: Home / Products / Widget       │ │ │
│ │ └─────────────────────────────────────────────┘ │ │
│ │ ┌───────────────────────────────┐ ┌───────────┐ │ │
│ │ │ title                         │ │  actions  │ │ │
│ │ │ description                   │ │  [Edit]   │ │ │
│ │ └───────────────────────────────┘ └───────────┘ │ │
│ └─────────────────────────────────────────────────┘ │
│ ┌─────────────────────────────────────────────────┐ │
│ │ content                                         │ │
│ │                                                 │ │
│ │   {children}                                    │ │
│ │                                                 │ │
│ └─────────────────────────────────────────────────┘ │
│ ┌─────────────────────────────────────────────────┐ │
│ │ footer (optional)                               │ │
│ └─────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────┘

Usage

<Page
  title="Product Details"
  description="View and manage your product"
  breadcrumbs={[
    { label: 'Home', href: '/' },
    { label: 'Products', href: '/products' },
    { label: 'Widget', href: '/products/widget' },
  ]}
  actions={[
    { label: 'Edit', href: '/products/widget/edit' },
    { label: 'Delete', action: 'delete', variant: 'outline' },
  ]}
  layout="default"
>
  <Section>
    <ProductCard product={product} />
  </Section>
</Page>

Layout Variants

LayoutMax WidthUse Case
default1200pxStandard content pages
narrow768pxBlog posts, articles
wide1440pxDashboards, tables
full100%Full-bleed layouts
centered768pxForms, auth pages

On this page