Skip to content

Commit

Permalink
feat: Add background and spacingStart props to PageBreadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfredrik committed Sep 4, 2023
1 parent 8da8e54 commit db5a35d
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ import React from "react";

export default function PageBreadcrumbs(props) {
props = useThemeProps({ props, name: "PageBreadcrumbs" });
let { transformItems = (items) => items, ...restProps } = props;
let {
transformItems = (items) => items,
background = "transparent",
spacingStart = [5, 10],
...restProps
} = props;
let { items } = usePageBreadcrumbs({ transformItems });
if (!items || items.length < 2) return null;

return (
<PageSection background="transparent" spacing={[2.5, 5]}>
<PageSection background={background} spacingStart={spacingStart}>
<PageGrid>
<PageGridItem colspan={12}>
<Breadcrumbs items={items} {...restProps} />
Expand Down

0 comments on commit db5a35d

Please sign in to comment.