MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / Breadcrumb

Function Breadcrumb

src/Breadcrumb.js:23–47  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

21};
22
23function 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
49Breadcrumb.propTypes = propTypes;
50

Callers

nothing calls this directly

Calls 1

mapToCssModulesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…