diff --git a/json-components-registry.json b/json-components-registry.json index de2c434..6b4cd2c 100644 --- a/json-components-registry.json +++ b/json-components-registry.json @@ -724,7 +724,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 (