UNPKG

solid-contextmenu

Version:

Add contextmenu to your solid app with ease

13 lines (12 loc) 421 B
import { JSX } from "solid-js"; import { MenuId } from ".."; export declare type LocalMenuProps = { id: MenuId; children?: JSX.Element; theme?: "light" | "dark"; animation?: string | false; onShown?: () => void; onHidden?: () => void; }; export declare type MenuProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "id"> & LocalMenuProps; export declare const Menu: (props: MenuProps) => JSX.Element;