UNPKG

solid-contextmenu

Version:

Add contextmenu to your solid app with ease

13 lines (12 loc) 473 B
import { JSX } from "solid-js"; import { BooleanPredicate, HandlerParams } from ".."; declare type LocalItemProps = { children?: JSX.Element; data?: any; disabled?: BooleanPredicate; hidden?: BooleanPredicate; onClick?: (args: HandlerParams) => void; }; export declare type ItemProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "hidden" | "disabled" | "onClick"> & LocalItemProps; export declare const Item: (props: ItemProps) => JSX.Element; export {};