diff --git a/json-components-registry.json b/json-components-registry.json index 62e9f19..76d3d47 100644 --- a/json-components-registry.json +++ b/json-components-registry.json @@ -698,7 +698,8 @@ "canHaveChildren": false, "description": "Navigation breadcrumb trail using the atoms/BreadcrumbNav JSON-safe items prop", "status": "supported", - "source": "atoms" + "source": "atoms", + "jsonCompatible": true }, { "type": "ContextMenu", diff --git a/src/components/atoms/Breadcrumb.tsx b/src/components/atoms/Breadcrumb.tsx index 4cce34b..5134007 100644 --- a/src/components/atoms/Breadcrumb.tsx +++ b/src/components/atoms/Breadcrumb.tsx @@ -8,11 +8,11 @@ interface BreadcrumbItem { } interface BreadcrumbNavProps { - items: BreadcrumbItem[] + items?: BreadcrumbItem[] className?: string } -export function BreadcrumbNav({ items, className }: BreadcrumbNavProps) { +export function BreadcrumbNav({ items = [], className }: BreadcrumbNavProps) { return (