Skip to content

Instantly share code, notes, and snippets.

@MaikelVeen
Last active January 20, 2021 22:44
Show Gist options
  • Save MaikelVeen/2ceb8894faf4c8af9603da8a4e054c43 to your computer and use it in GitHub Desktop.
Save MaikelVeen/2ceb8894faf4c8af9603da8a4e054c43 to your computer and use it in GitHub Desktop.
export function Breadcrumb({ breadcrumbItems }: BreadcrumbProps) {
return (
<nav className="c-breadcrumb">
<ol itemScope itemType="https://schema.org/BreadcrumbList" className="breadcrumb__list">
{breadcrumbItems.map((item, index, array) =>
<BreadcrumbItem {...item} index={index + 1} isLast={array.length - 1 === index} key={index} />
</ol>
</nav>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment