Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{active && (
<div className={styles.menu}>
<div tabIndex='0' className={styles.menuItem}>Item A</div>
<div tabIndex='0' className={styles.menuItem}>Item B</div>
<div tabIndex='0' className={styles.menuItem} onKeyDown={e => closeMenu(e)}>Item C</div>
</div>
)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment