@zendeskgarden/react-chrome
Collection of elements relating to the Chrome component within the Garden Design System
Installation
npm install @zendeskgarden/react-chrome
npm install react react-dom styled-components @zendeskgarden/react-theming
Usages
import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Chrome, Nav, SubNav, Body, Header, Content, Main } from '@zendeskgarden/react-chrome';
import ConnectIcon from '@zendeskgarden/icons/src/26/relationshape-connect.svg';
<ThemeProvider>
<Chrome>
<Nav isExpanded>
<Nav.Item hasLogo product="connect" title="Zendesk Connect">
<Nav.ItemIcon>
<ConnectIcon />
</Nav.ItemIcon>
<NavItemText>Zendesk Connect</NavItemText>
</Nav.Item>
<Nav.Item isCurrent>
<Nav.ItemIcon>
<HomeIcon />
</Nav.ItemIcon>
<NavItemText>Home</NavItemText>
</Nav.Item>
</Nav>
<SubNav>
<SubNav.Item isCurrent>
<SubNav.ItemText>Subnav 1</SubNav.ItemText>
</SubNav.Item>
...
</SubNav>
<Body>
<Header>...</Header>
<Content>
<Main>Lorem ipsum...</Main>
</Content>
</Body>
</Chrome>
</ThemeProvider>;