Sha256: 931626c320b8ee6443e647d2a8efcc397a7a025bd737d32071b1add5ec41412b

Contents?: true

Size: 885 Bytes

Versions: 35

Compression:

Stored size: 885 Bytes

Contents

/* @flow */

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

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

35 entries across 35 versions & 1 rubygems

Version Path
playbook_ui-11.2.2 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-11.2.1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-11.2.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-11.1.2 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-11.1.2.pre.alpha1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-11.1.1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-11.1.1.pre.alpha1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-11.1.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-11.0.1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-11.0.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-11.0.0.pre.alpha.2 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-11.0.0.pre.alpha.1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.26.1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.27.0.pre.lazysizes1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.27.0.pre.datepicker1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.26.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.26.0.pre.alpha5 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.26.0.pre.rc1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.26.0.pre.alpha.sticky1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.26.0.pre.alpha.display1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx