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.2.1.alpha.sisensefix app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-10.2.1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-10.2.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-10.1.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-10.0.3.pre.alpha.walkthrough2 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-10.0.3.pre.alpha.walkthrough app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-10.0.1.alpha.railscusticon app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-10.0.2.pre.alpha.pre.iconfix app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-10.0.1.alpha.rtflexfix app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-10.0.0.pre.alphafonts app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-10.0.1 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-10.0.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-9.19.0.pre.alpha.pre.fonts2 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-9.19.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-9.18.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-9.17.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
playbook_ui-9.16.0 app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx