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-10.14.1.pre.alpha1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.14.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.13.1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.13.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.13.0.pre.node.update app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.12.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.11.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.10.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.9.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.8.1.pre.alpha.flexdeps app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.9.0.pre.alpha1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.8.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.7.1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.7.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.6.2.pre.alpha.dep app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.6.1.pre.alpha1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.6.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.5.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.4.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
playbook_ui-10.3.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx