Bonusway design system

Navigation

Breadcrumb

The trail to the current page — store categories, deal types.

import Breadcrumb from '@/components/ui/Breadcrumb';

Source: src/components/ui/Breadcrumb.tsx

Examples

A trail

The last item is the current page and is not a link. Passing an href for it would make a link to where you already are.

Props

<Breadcrumb> props

PropTypeDefaultDescription
itemsrequiredBreadcrumbItem[]
classNamestring''

Accessibility

  • Renders a nav landmark with an ordered list, so the trail’s depth is announced.
  • The current page is marked aria-current.

Usage

Don’t

  • Don’t give the last item an href.
  • Don’t use it as a substitute for a back button.

Related:Tabs

Denna webbplats använder cookies.

Vi använder cookies för att förbättra din upplevelse på vår webbplats och anpassa innehållet vi tillhandahåller dig. Viktiga cookies är nödvändiga för att vår tjänst ska fungera korrekt. Om du går med på att vi samlar in information om dig genom användningen av nödvändiga och marknadsförande cookies, välj "Acceptera alla". Du kan alltid ändra dina preferenser genom att besöka Cookie -inställningar.

Cookie -inställningar