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