Last active
September 4, 2019 07:00
-
-
Save mrcthms/5ae07f0eeb1a693e070e3133403c2ba7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
// This is not the 'home' icon in the screenshot – we do not have a 'home' icon | |
// in Helios. Something that would be great to add as the one in the screenshot | |
// looks a little out of place among the other Helios icons. | |
import { Screens } from '@invisionapp/helios/icons' | |
import { Dropdown } from '@invisionapp/helios' | |
function MyDropdown(props) { | |
return ( | |
<Dropdown | |
items={[ | |
{ | |
type: 'item', | |
icon: <Screens size={16} />, | |
href: '/artboard-1', | |
label: 'Artboard 1', | |
// This is the key attribute to make the tick appear for a particular Menu item within the Dropdown | |
selected: true | |
}, | |
{ | |
type: 'item', | |
label: 'Artboard 2', | |
href: '/artboard-2' | |
}, | |
{ | |
type: 'item', | |
label: 'Artboard 3', | |
href: '/artboard-3' | |
} | |
]} | |
/> | |
) | |
} | |
export default MyDropdown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment