Sha256: d44be02bef1bc6569a36fac0d547d8c94a220f99814f7fd7696cfaaa333c6e0a

Contents?: true

Size: 987 Bytes

Versions: 67

Compression:

Stored size: 987 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 BreadCrumbItemProps = {
  aria?: object,
  className?: string,
  data?: object,
  id?: string,
  component?: element
}
const BreadCrumbItem = (props: BreadCrumbItemProps) => {
  const {
    aria = {},
    className,
    data = {},
    id,
    component = 'a',
    ...rest
  } = props
  const ariaProps = buildAriaProps(aria)
  const dataProps = buildDataProps(data)
  const css = classnames(
    buildCss('pb_bread_crumb_item_kit'),
    globalProps(props),
    className
  )
  const Component = component || 'span'
  return (
    <div
        {...ariaProps}
        {...dataProps}
        className={css}
        id={id}
    >
      <Component
          className="pb_bread_crumb_item"
          {...rest}
      />
    </div>
  )
}
export default BreadCrumbItem

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