@nypl/design-system-react-components 3.1.7-rc-breadcrumbs → 3.1.7-rc-breadcrumbs-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChakraComponent } from "@chakra-ui/react";
|
|
2
2
|
import React from "react";
|
|
3
3
|
export declare const breadcrumbTypeArray: readonly ["blogs", "booksAndMore", "brand", "connect", "digitalCollections", "education", "locations", "research", "whatsOn"];
|
|
4
|
-
export type BreadcrumbsTypes =
|
|
4
|
+
export type BreadcrumbsTypes = typeof breadcrumbTypeArray[number];
|
|
5
5
|
export interface BreadcrumbsDataProps {
|
|
6
6
|
url: string;
|
|
7
7
|
text: string | React.ReactNode;
|
|
8
|
-
|
|
8
|
+
linkProps?: any;
|
|
9
9
|
}
|
|
10
10
|
export interface BreadcrumbProps {
|
|
11
11
|
/** Breadcrumb links as an array */
|
|
@@ -16,6 +16,8 @@ export interface BreadcrumbProps {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
/** ID that other components can cross reference for accessibility purposes */
|
|
18
18
|
id?: string;
|
|
19
|
+
/** Custom Link component for apps with internal routing, defaults to BreadcrumbLink if not passed */
|
|
20
|
+
customLink?: any;
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
23
|
* The `Breadcrumbs` component is a navigation element that provides a
|