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