qat

Breadcrumb

Breadcrumb. It is copied into your app’s ui/ by qatjs add breadcrumb: the code is yours to edit.

Example

Example.qx15 linesOpen in the playground
import Breadcrumb from './ui/breadcrumb/breadcrumb.qx'

export default function Example() {
  return (
    <Breadcrumb
      items={[
        { label: 'Kassa', href: '#kassa' },
        { label: 'Orders', href: '#orders' },
        { label: '2026', href: '#2026' },
        { label: 'October', href: '#october' },
        { label: 'Order 10482' },
      ]}
    />
  )
}

Add it

shell1 line
npx qatjs add breadcrumb

As a custom element: <ui-breadcrumb>.

Breadcrumb: props
PropTypeAttribute
itemsCrumb[]property only
maxnumberyes
labelstringyes
moreLabelstringyes