Skip to content

Latest commit

 

History

History

breadcrumbs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@zendeskgarden/react-breadcrumbs npm version

This package includes components relating to breadcrumbs in the Garden Design System.

Installation

npm install @zendeskgarden/react-breadcrumbs

# Peer Dependencies - Also Required
npm install react react-dom styled-components @zendeskgarden/react-theming

Usage

import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Breadcrumb } from '@zendeskgarden/react-breadcrumbs';
import { Anchor } from '@zendeskgarden/react-buttons';

/**
 * Place a `ThemeProvider` at the root of your React application
 */
<ThemeProvider>
  <Breadcrumb>
    <Anchor href="/">Root</Anchor>
    <Anchor href="..">Parent</Anchor>
    <span>Self</span>
  </Breadcrumb>
</ThemeProvider>;