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

<Breadcrumb.Root>
  <Breadcrumb.Item href="/">Home</Breadcrumb.Item>
  <Breadcrumb.Item href="/docs">Docs</Breadcrumb.Item>
  <Breadcrumb.Item>Current</Breadcrumb.Item>
</Breadcrumb.Root>

Import options

Root package

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

Per-component subpath

ts
import { Breadcrumb } from '@dryui/ui/breadcrumb'

Customize

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

Structure

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

Breadcrumb.Root
  Breadcrumb.Item
Breadcrumb.Root Breadcrumb.ListBreadcrumb.ItemBreadcrumb.LinkBreadcrumb.Separator

Compose

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

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

Breadcrumb.ListBreadcrumb.ItemBreadcrumb.LinkBreadcrumb.Separator

Breadcrumb.Root

Prop Type Default Required Bindable
children
Snippet

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

Breadcrumb.List

Prop Type Default Required Bindable
children
Snippet

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

Breadcrumb.Item

Prop Type Default Required Bindable
children
Snippet

Forwards <li> attributes via rest props. Common examples: id, role, value.

Breadcrumb.Link

Prop Type Default Required Bindable
href
string
current
boolean
false
children
Snippet

Forwards <a> attributes via rest props. Common examples: href, target, rel.

Breadcrumb.Separator

Prop Type Default Required Bindable
children
Snippet

Forwards <li> attributes via rest props. Common examples: id, role, value.