Mobile Navigation

Default

The trigger button and the dialog are wired by ID via the HTML Invoker Commands API, with no JavaScript required. Clicking the button opens the full-screen dialog; the close button inside dismisses it.

<ButtonIcon
icon="list"
label="Open navigation menu"
variant="transparent"
commandFor="demo-mobile-navigation"
command="show-modal"
/>
<MobileNavigation
id="demo-mobile-navigation"
title="Lloyd Atkinson"
links={[
{ title: 'Articles', to: '/articles/' },
{ title: 'Notes', to: '/notes/' },
{ title: 'Speaking', to: '/speaking/' },
{ title: 'About', to: '/about/' },
]}
iconLinks={[
{ title: 'Read', to: '/reading/', icon: 'books' },
{ title: 'RSS Feed', to: '/rss.xml', icon: 'rss' },
{ title: 'Contact', to: '/inbox/', icon: 'envelope' },
]}
/>