@finastra/breadcrumb
TypeScript icon, indicating that this package has built-in type declarations

1.8.1 • Public • Published

Breadcrumb

The Breadcrumb component is a navigational helper. It accepts a list of labels (strings) as an input and dispatches a selected event each time the user clicks on a label.

See it on NPM! How big is this package in your project? Storybook

Usage

Import

npm i @finastra/breadcrumb
import '@finastra/breadcrumb';
...
<fds-breadcrumb items="[
    {
        label: 'Home',
        link: '#'
    },
    {
        label: 'Link 2',
        link: '#link-2'
    },
    {
        label: 'Link 3',
        link: '#link-2/link-3'
    }
]"></fds-breadcrumb>

API

Properties

Property Attribute Type Default Description
items items Array [] A list of items to display

Events

Event Type
selected CustomEvent<{ item: Crumb; }>

CSS Custom Properties

Property Type Default Description
--fds-breadcrumb-divider "'/'" Set the character used as divider between items
--fds-breadcrumb-divider-color color "auto" Set the character used as divider between items

Package Sidebar

Install

npm i @finastra/breadcrumb

Weekly Downloads

0

Version

1.8.1

License

MIT

Unpacked Size

16.9 kB

Total Files

20

Last publish

Collaborators

  • david.bocle
  • ffdcbot
  • ttalbot