Skip to content

Commit

Permalink
Pass class into breadcrumbs RAC
Browse files Browse the repository at this point in the history
  • Loading branch information
Gomez committed May 15, 2024
1 parent 948857b commit 8149444
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ interface BreadcrumbsProps<T> extends RACBreadcrumbsProps<T> {
* Breadcrumbs display a hierarchy of links to the current page or resource in an application.
*/
export function Breadcrumbs({
className,
items,
root,
includeRoot,
Expand All @@ -42,9 +43,9 @@ export function Breadcrumbs({

return (
<nav aria-label="breadcrumbs" role="navigation">
<RACBreadcrumbs items={itemsWithRoot || items}>
<RACBreadcrumbs className={className} items={itemsWithRoot || items}>
{(item) => (
<RACBreadcrumb id={item['@id']}>
<RACBreadcrumb className={className} id={item['@id']}>
<Link href={item['@id']}>
{item['@id'] === (root || '/') && <HomeIcon size="S" />}
{item.title}
Expand Down

0 comments on commit 8149444

Please sign in to comment.