UNPKG

solid-contextmenu

Version:

Add contextmenu to your solid app with ease

7 lines (6 loc) 408 B
import { ShowContextMenuParams, TriggerEvent } from ".."; export declare type UseContextMenuProps = Partial<Pick<ShowContextMenuParams, "id" | "props">>; export declare const useContextMenu: (props?: Partial<Pick<ShowContextMenuParams, "id" | "props">> | undefined) => { show: (event: TriggerEvent, params?: Partial<Omit<ShowContextMenuParams, "event">> | undefined) => void; hideAll: () => void; };