Skip to content

Commit

Permalink
Add mobile navigation menu
Browse files Browse the repository at this point in the history
  • Loading branch information
reesscot committed Nov 19, 2021
1 parent f82e973 commit 1d2119d
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions docs/src/components/Layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
IconMenu,
Divider,
useTheme,
Menu,
MenuItem,
} from '@aws-amplify/ui-react';
import { useRouter } from 'next/router';
import { Logo } from '@/components/Logo';
Expand Down Expand Up @@ -72,9 +74,26 @@ export const Header = ({ platform, colorMode, setColorMode }) => {
alignItems="center"
padding={`${tokens.space.small} ${tokens.space.xl}`}
>
<Button className="docs-header-menu-button" size="small">
<IconMenu />
</Button>
<Menu className="docs-header-menu-button" size="small">
<MenuItem>
<NavLink href="/getting-started/installation">
Getting started
</NavLink>
</MenuItem>
<MenuItem>
<NavLink href="/components">Components</NavLink>
</MenuItem>
<MenuItem>
<NavLink href="/theming">Theming</NavLink>
</MenuItem>
<Divider />
<MenuItem>
<NavLink isExternal href="https://docs.amplify.aws">
Amplify docs <IconOpenInNew />
</NavLink>
</MenuItem>
</Menu>

<NavLink href="/">
<a className="docs-logo-link">
<VisuallyHidden>Amplify UI Home</VisuallyHidden>
Expand Down

0 comments on commit 1d2119d

Please sign in to comment.