diff --git a/packages/breadcrumbs/src/Breadcrumbs.constants.ts b/packages/breadcrumbs/src/Breadcrumbs.constants.ts new file mode 100644 index 000000000..fcd8e2a4c --- /dev/null +++ b/packages/breadcrumbs/src/Breadcrumbs.constants.ts @@ -0,0 +1,7 @@ +const LIST_ITEM_PROPS = { + itemProp: 'itemListElement', + itemScope: true, + itemType: 'https://schema.org/ListItem', +}; + +export { LIST_ITEM_PROPS }; diff --git a/packages/breadcrumbs/src/Breadcrumbs.tsx b/packages/breadcrumbs/src/Breadcrumbs.tsx index adf40f909..5867390d3 100644 --- a/packages/breadcrumbs/src/Breadcrumbs.tsx +++ b/packages/breadcrumbs/src/Breadcrumbs.tsx @@ -3,6 +3,7 @@ import cn from 'classnames'; import { v4 as uuidv4 } from 'uuid'; import useBreakpoint from './hooks/useBreakpoint.hook'; +import { LIST_ITEM_PROPS } from './Breadcrumbs.constants'; import { Breadcrumb, BreadcrumbLinkProps, @@ -56,20 +57,33 @@ const Breadcrumbs: FC = ({