@zendeskgarden/react-breadcrumbs
v9.4.0
Published
Components relating to breadcrumbs in the Garden Design System
Downloads
376,266
Maintainers
Readme
@zendeskgarden/react-breadcrumbs
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>;