diff --git a/packages/core/src/layout/Breadcrumbs/Breadcrumbs.stories.tsx b/packages/core/src/layout/Breadcrumbs/Breadcrumbs.stories.tsx
index f21b5a94e6..f2a6611d03 100644
--- a/packages/core/src/layout/Breadcrumbs/Breadcrumbs.stories.tsx
+++ b/packages/core/src/layout/Breadcrumbs/Breadcrumbs.stories.tsx
@@ -13,9 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import React from 'react';
-import { Breadcrumbs } from '.';
+import { Popover, Typography, Box, List, ListItem } from '@material-ui/core';
+import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
+import ExpandLessIcon from '@material-ui/icons/ExpandLess';
+import React, { Fragment } from 'react';
import { MemoryRouter } from 'react-router-dom';
+import { Breadcrumbs } from '.';
import { Link } from '../../components/Link';
export default {
@@ -24,12 +27,101 @@ export default {
};
// export const InHeader = () => ;
-export const OutsideOfHeader = () => (
-
-
- Home
- Home
-
-
-);
-// export const ExampleUsage = () => ;
+export const OutsideOfHeader = () => {
+ const [anchorEl, setAnchorEl] = React.useState(
+ null,
+ );
+ const handleClick = (event: React.MouseEvent) => {
+ setAnchorEl(event.currentTarget);
+ };
+
+ const handleClose = () => {
+ setAnchorEl(null);
+ };
+
+ const open = Boolean(anchorEl);
+ return (
+
+
+ It might be the case that you want to keep your breadcrumbs outside of
+ the header. In that case, they should be positioned above the title of
+ the page.
+
+
Standard breadcrumbs
+
+ Underlined pages are links. This should show a hierarchical
+ relationship.
+
+
+ General Page
+ Second Page
+ Current page
+
+
+ General Page
+ Current page
+
+
+ Current page
+
+
+
Hidden breadcrumbs
+
+ Use this when you have more than three breadcrumbs. When user clicks on
+ ellipses, expand the breadcrumbs out.
+
+
+
+ General Page
+ Second Page
+ Third Page
+ Fourth Page
+ Current page
+
+
+
Layered breadcrumbs
+
+ Use this when you want to show alternative breadcrumbs on the same
+ hierarchical level.
+