@ausbom/breadcrumbs
TypeScript icon, indicating that this package has built-in type declarations

0.2.52 • Public • Published

@ausbom/breadcrumbs

Breadcrumbs are a type of secondary navigation. They help the user understand their location in the website and show any parent pages associated with it. Breadcrumbs are a horizontal row of text links separated by the chevron icon (>). The chevron indicates the level of that page relative to the page links beside it.

Installation

npm install @ausbom/breadcrumbs

Usage

import Breadcrumbs, { Breadcrumb } from '@ausbom/breadcrumbs'
import React from 'react'
import Home12 from '@ausbom/icon/lib/icons/system/Home12'

// Desktop version
<Breadcrumbs>
  <Breadcrumb as="a" label="Home" icon={Home12} hideLabel href="/" id="one" />
  <Breadcrumb as="a" label="Level two" href="/" id="two" />
  <Breadcrumb as="span" label="Current page" current id="three" />
</Breadcrumbs>

// Compact (mobile) version
<Breadcrumbs compact>
  <Breadcrumb useAsCompact as="a" label="Parent to this page" href="/" id="one-compact" />
</Breadcrumbs>

Dependencies (2)

Dev Dependencies (1)

Package Sidebar

Install

npm i @ausbom/breadcrumbs

Weekly Downloads

200

Version

0.2.52

License

MIT

Unpacked Size

13.3 kB

Total Files

7

Last publish

Collaborators

  • shaid
  • bom-hawyangpeng
  • digitaldeveloper-bom
  • george-cheng-bom
  • pmurator-bom