import type { JSX, ValidComponent } from "@solidjs/web"; import type { BaseUIComponentProps, NativeButtonProps } from "../../internals/types.js"; import type { MenuHandle } from "../store/menu-store.js"; export interface MenuTriggerState { /** Whether the menu is currently open. */ open: boolean; /** Whether the trigger is disabled. */ disabled: boolean; } export interface MenuTriggerProps extends NativeButtonProps, BaseUIComponentProps<"button", MenuTriggerState> { /** * Tag/component to render. Defaults to `"button"`. Replaces the * pre-spike `render` prop (axis G). */ as?: ValidComponent; /** Whether the component should ignore user interaction. @default false */ disabled?: boolean | undefined; /** * Optional handle this trigger should register with. Register against * the handle's store instead of the enclosing root's store when * supplied. */ handle?: MenuHandle | undefined; /** * Payload to associate with this trigger. When this trigger opens the * menu, the payload is written into the root; render-function children * receive it as `{ payload }`. */ payload?: Payload | undefined; /** * Whether the menu should also open when the trigger is hovered. */ openOnHover?: boolean | undefined; /** * How long to wait before hover-opens the menu (ms). * @default 100 */ delay?: number | undefined; /** @default 0 */ closeDelay?: number | undefined; } export declare function MenuTrigger(props: MenuTriggerProps): JSX.Element; //# sourceMappingURL=menu-trigger.d.ts.map