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' },
]}
/>
- Start
- Du vill förlänga
- Studera
Installation
- npm
- Yarn
- pnpm
npm install @midas-ds/components
yarn add @midas-ds/components
pnpm add @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' },
]}
/>
- Start
- Du vill förlänga
- Studera
API
Name | Type | Default | Description |
---|---|---|---|
items * | { href: string; title: string; isDisabled?: boolean; }[] | - |