Theme

Start Here

Start from the smallest working snippet, then move to interactive examples and the full API contract below.

Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { PageLayout } from '@dryui/ui';
</script>

<PageLayout.Root fullHeight>
  <PageLayout.Header sticky>
    <AppBar.Root>
      <AppBar.Title>Workspace</AppBar.Title>
      <Button variant="ghost" size="sm">Search</Button>
      <Button size="sm">New</Button>
    </AppBar.Root>
  </PageLayout.Header>
  <PageLayout.Sidebar sticky>
    <Sidebar.Root>
      <Sidebar.Content>
        <Sidebar.Group>
          <Sidebar.GroupLabel>Navigation</Sidebar.GroupLabel>
          <Sidebar.Item active href="#">Overview</Sidebar.Item>
          <Sidebar.Item href="#">Releases</Sidebar.Item>
        </Sidebar.Group>
      </Sidebar.Content>
    </Sidebar.Root>
  </PageLayout.Sidebar>
  <PageLayout.Content>
    <PageHeader.Root>
      <PageHeader.Content>
        <PageHeader.Title level={1}>Overview</PageHeader.Title>
      </PageHeader.Content>
    </PageHeader.Root>
    <Card.Root>
      <Card.Content>Primary content</Card.Content>
    </Card.Root>
  </PageLayout.Content>
</PageLayout.Root>

Import options

Root package

ts
import { PageLayout } from '@dryui/ui'

Per-component subpath

ts
import { PageLayout } from '@dryui/ui/page-layout'

Customize

Use the interactive examples to see common variants, states, and composition patterns before building your own.

Dashboard Shell

Workspace

Release Overview

Track progress, ownership, and launch blockers.

Primary content area
svelte
<script lang="ts">
  import { AppBar, Card, PageHeader, PageLayout, Sidebar, Stack } from '@dryui/ui';
</script>

<PageLayout.Root style="min-height: 34rem;">
  <PageLayout.Header sticky>
    <AppBar.Root>
      <AppBar.Title>Workspace</AppBar.Title>
    </AppBar.Root>
  </PageLayout.Header>
  <PageLayout.Sidebar sticky>
    <Sidebar.Root style="height: 100%;">
      <Sidebar.Content>
        <Sidebar.Group>
          <Sidebar.GroupLabel>Navigation</Sidebar.GroupLabel>
          <Sidebar.Item active href="#">Overview</Sidebar.Item>
          <Sidebar.Item href="#">Releases</Sidebar.Item>
          <Sidebar.Item href="#">Settings</Sidebar.Item>
        </Sidebar.Group>
      </Sidebar.Content>
    </Sidebar.Root>
  </PageLayout.Sidebar>
  <PageLayout.Content>
    <Stack gap="lg">
      <PageHeader.Root>
        <PageHeader.Content>
          <PageHeader.Title level={1}>Release Overview</PageHeader.Title>
          <PageHeader.Description>Track progress, ownership, and launch blockers.</PageHeader.Description>
        </PageHeader.Content>
      </PageHeader.Root>
      <Card.Root>
        <Card.Content>Primary content area</Card.Content>
      </Card.Root>
    </Stack>
  </PageLayout.Content>
  <PageLayout.Aside sticky>
    <Card.Root>
      <Card.Content>Helpful context and next steps</Card.Content>
    </Card.Root>
  </PageLayout.Aside>
</PageLayout.Root>

Structure

Compound components always start with PageLayout.Root. Use this structure block to understand required wrappers before you wire state or styling.

PageLayout.Root
  PageLayout.Header
  PageLayout.Sidebar
  PageLayout.Content
PageLayout.Root PageLayout.HeaderPageLayout.SidebarPageLayout.ContentPageLayout.Aside

Compose

The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.

Compound component. Start with PageLayout.Root, then add only the parts you need.

PageLayout.HeaderPageLayout.SidebarPageLayout.ContentPageLayout.Aside

PageLayout.Root

Prop Type Default Required Bindable
fullHeight
boolean
false
children
Snippet

Forwards <div> attributes via rest props. Common examples: id, style, role.

PageLayout.Header

Prop Type Default Required Bindable
sticky
boolean
false
children
Snippet

Forwards <element> attributes via rest props. Common examples: id, class, aria-label.

PageLayout.Sidebar

Prop Type Default Required Bindable
sticky
boolean
false
children
Snippet

Forwards <element> attributes via rest props. Common examples: id, class, aria-label.

PageLayout.Content

Prop Type Default Required Bindable
children
Snippet

Forwards <element> attributes via rest props. Common examples: id, class, aria-label.

PageLayout.Aside

Prop Type Default Required Bindable
sticky
boolean
false
children
Snippet

Forwards <element> attributes via rest props. Common examples: id, class, aria-label.