Skip to content

Instantly share code, notes, and snippets.

@NickyYo
Last active May 23, 2017 13:29
Show Gist options
  • Save NickyYo/bf8254868f7185b34864dbbb76fa1879 to your computer and use it in GitHub Desktop.
Save NickyYo/bf8254868f7185b34864dbbb76fa1879 to your computer and use it in GitHub Desktop.
Component
import './style.scss';
import * as React from 'react';
import { Popover } from '../';
import { Position } from '@blueprintjs/core';
interface INavAccountPopover { }
export const NavAccountPopover: React.StatelessComponent<INavAccountPopover> = (props) => {
return (<Popover position={Position.BOTTOM_LEFT} content={(<div>ALL YOUR HTML AND STYLING HERE</div>)}>
<Button>When this is clicked the element inside the content property is shown as a popover</Button>
</Popover>)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment