(props)
| 21 | }; |
| 22 | |
| 23 | function Breadcrumb(props) { |
| 24 | const { |
| 25 | className, |
| 26 | listClassName, |
| 27 | cssModule, |
| 28 | children, |
| 29 | tag: Tag = 'nav', |
| 30 | listTag: ListTag = 'ol', |
| 31 | 'aria-label': label = 'breadcrumb', |
| 32 | ...attributes |
| 33 | } = props; |
| 34 | |
| 35 | const classes = mapToCssModules(classNames(className), cssModule); |
| 36 | |
| 37 | const listClasses = mapToCssModules( |
| 38 | classNames('breadcrumb', listClassName), |
| 39 | cssModule, |
| 40 | ); |
| 41 | |
| 42 | return ( |
| 43 | <Tag {...attributes} className={classes} aria-label={label}> |
| 44 | <ListTag className={listClasses}>{children}</ListTag> |
| 45 | </Tag> |
| 46 | ); |
| 47 | } |
| 48 | |
| 49 | Breadcrumb.propTypes = propTypes; |
| 50 |
nothing calls this directly
no test coverage detected
searching dependent graphs…