@ptadmin/pbs-breadcrumbs

Breadcrumbs component

Usage no npm install needed!

<script type="module">
  import ptadminPbsBreadcrumbs from 'https://cdn.skypack.dev/@ptadmin/pbs-breadcrumbs';
</script>

README

Login

Breadcrumbs is a generic component that displays a list of links that represent the selected item's ancestry.

Usage

import Breadcrumbs from '@ptadmin/pbs-login-page';

<Breadcrumbs ancestry=[{...},{...},{...},] />

Props

ancestry (array): an array of objects ordered by ancestry level ( the top parent should be the first index and so on). Each object is expected to contain an id(int), a name(string) and a type(string).