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 { PageHeader } from '@dryui/ui';
</script>

<PageHeader.Root>
  <PageHeader.Content>
    <PageHeader.Eyebrow>Workspace</PageHeader.Eyebrow>
    <PageHeader.Title level={1}>Launch Control</PageHeader.Title>
    <PageHeader.Description>Coordinate releases, approvals, and rollout health.</PageHeader.Description>
  </PageHeader.Content>
  <PageHeader.Actions>
    <Button variant="ghost">Share</Button>
    <Button variant="solid">Publish</Button>
  </PageHeader.Actions>
  <PageHeader.Meta>
    <Badge variant="soft">Live</Badge>
    <span>Updated 5 minutes ago</span>
  </PageHeader.Meta>
</PageHeader.Root>

Import options

Root package

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

Per-component subpath

ts
import { PageHeader } from '@dryui/ui/page-header'

Customize

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

Default

Workspace

Launch Control

Coordinate approvals, rollout health, and release timing.

Updated 5 minutes ago
svelte
<script lang="ts">
  import { PageHeader } from '@dryui/ui';
</script>

<PageHeader.Root>
  <PageHeader.Content>
    <PageHeader.Eyebrow>Workspace</PageHeader.Eyebrow>
    <PageHeader.Title level={1}>Launch Control</PageHeader.Title>
    <PageHeader.Description>Coordinate approvals, rollout health, and release timing.</PageHeader.Description>
  </PageHeader.Content>
  <PageHeader.Meta>
    <span>Updated 5 minutes ago</span>
  </PageHeader.Meta>
</PageHeader.Root>

With Actions

Campaign

Spring Launch

Monitor messaging, approvals, and channel readiness.

Ready 14 assets approved
svelte
<script lang="ts">
  import { Badge, Button, PageHeader } from '@dryui/ui';
</script>

<PageHeader.Root>
  <PageHeader.Content>
    <PageHeader.Eyebrow>Campaign</PageHeader.Eyebrow>
    <PageHeader.Title level={1}>Spring Launch</PageHeader.Title>
    <PageHeader.Description>Monitor messaging, approvals, and channel readiness.</PageHeader.Description>
  </PageHeader.Content>
  <PageHeader.Actions>
    <Button variant="ghost">Preview</Button>
    <Button variant="solid">Publish</Button>
  </PageHeader.Actions>
  <PageHeader.Meta>
    <Badge variant="soft">Ready</Badge>
    <span>14 assets approved</span>
  </PageHeader.Meta>
</PageHeader.Root>

Structure

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

PageHeader.Root
  PageHeader.Content
    PageHeader.Eyebrow
    PageHeader.Title
    PageHeader.Description
  PageHeader.Actions
  PageHeader.Meta
PageHeader.Root PageHeader.ContentPageHeader.ActionsPageHeader.EyebrowPageHeader.TitlePageHeader.DescriptionPageHeader.Meta

Compose

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

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

PageHeader.ContentPageHeader.ActionsPageHeader.EyebrowPageHeader.TitlePageHeader.DescriptionPageHeader.Meta

PageHeader.Root

Prop Type Default Required Bindable
children
Snippet

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

PageHeader.Content

Prop Type Default Required Bindable
children
Snippet

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

PageHeader.Actions

Prop Type Default Required Bindable
children
Snippet

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

PageHeader.Eyebrow

Prop Type Default Required Bindable
children
Snippet

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

PageHeader.Title

Prop Type Default Required Bindable
level
123456
2
children
Snippet

Forwards <h*> attributes via rest props. Common examples: id, style, aria-label.

PageHeader.Description

Prop Type Default Required Bindable
children
Snippet

Forwards <p> attributes via rest props. Common examples: id, style, aria-describedby.

PageHeader.Meta

Prop Type Default Required Bindable
children
Snippet

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