UNPKG

@nexusui/components

Version:

These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.

2 lines (1 loc) 223 B
import{useState as o}from"react";const n=()=>{const[n,t]=o(null);return{anchorEl:n,open:Boolean(n),handleOpen:o=>{t(o.currentTarget),o.stopPropagation()},handleClose:o=>{t(null),o.stopPropagation()}}};export{n as default};