Hoppa till huvudinnehåll

Breadcrumbs

Brödsmulor

Komponent som används för att visa användaren var den är i ett djupt navigationsträd.

<Breadcrumbs
items={[
{ href: '/', title: 'Start' },
{ href: '/du-vill-forlanga', title: 'Du vill förlänga' },
{ href: '/du-vill-forlanga/studera', title: 'Studera' },
]}
/>

Installation

npm install @midas-ds/components
import { Breadcrumbs } from '@midas-ds/components'

Varianter

Förbjudna val

Använd propertyn isDisabled om du vill förbjuda vissa val

<Breadcrumbs
items={[
{ href: '/', title: 'Start' },
{ href: '/du-vill-forlanga', title: 'Du vill förlänga', isDisabled: true },
{ href: '/du-vill-forlanga/studera', title: 'Studera' },
]}
/>
  1. Start
  2. Du vill förlänga
  3. Studera

API

NameTypeDefaultDescription
items *{ href: string; title: string; isDisabled?: boolean; }[]-