logo-icon
STW UI

Breadcrumbs

Breadcrumbs helps users to navigate through the website.

Usage

svelte
import { Breadcrumbs } from 'stwui';
// OR
import Breadcrumbs from 'stwui/breadcrumbs'; // for tree shaking

Basic

Solid

With Custom Dividers

Breadcrumbs Props

type 'solid' | 'ghost' ghost

Breadcrumbs Slots

default <Breadcrumbs.Crumb />

Breadcrumbs.Crumb Props

href string

Breadcrumbs.Crumb Slots

divider <Breadcrumbs.Crumb.Divider slot="divider" />
icon <Breadcrumbs.Crumb.Icon slot="icon" />
label <Breadcrumbs.Crumb.Label slot="label" />
default

Breadcrumbs.Crumb.Icon Props

data string (IconData)
viewBox string 0 0 24 24
size string 24px
width string 24px
height string 24px
color string currentColor
stroke string | undefined
fill string currentColor

Breadcrumbs.Crumb.Label Slots

default

Breadcrumbs Class Identifiers

stwui-breadcrumbs
stwui-breadcrumbs-crumb
stwui-breadcrumbs-crumb-divider
stwui-breadcrumbs-crumb-label