Sha256: 33ff657a8e0d287ddd322c3e2c55a14f32b6898de53ed54680df61d82466ab0c

Contents?: true

Size: 888 Bytes

Versions: 67

Compression:

Stored size: 888 Bytes

Contents

/* @flow */

import React from 'react'
import classnames from 'classnames'
import { globalProps } from '../utilities/globalProps.js'

import {
  buildAriaProps,
  buildCss,
  buildDataProps,
} from '../utilities/props'

type BreadCrumbsProps = {
  aria?: object,
  className?: string,
  data?: object,
  id?: string,
  text?: string,
  children?: node
}
const BreadCrumbs = (props: BreadCrumbsProps) => {
  const {
    aria = { label: 'Breadcrumb Navigation' },
    className,
    data = {},
    id,
    children,
  } = props
  const ariaProps = buildAriaProps(aria)
  const dataProps = buildDataProps(data)
  const css = classnames(
    buildCss('pb_bread_crumbs_kit'),
    globalProps(props),
    className
  )

  return (
    <nav
        {...ariaProps}
        {...dataProps}
        className={css}
        id={id}
    >
      {children}
    </nav>
  )
}

export default BreadCrumbs

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
playbook_ui-9.15.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-9.14.1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-9.13.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-9.12.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx