UNPKG

@gluestack-ui/core

Version:

Universal UI components for React Native, Expo, and Next.js

21 lines 672 B
import type { Key, RefObject } from 'react'; import type { TreeState } from '@react-stately/tree'; interface MenuItemAria { menuItemProps: any; labelProps: any; descriptionProps: any; keyboardShortcutProps: any; } interface AriaMenuItemProps { 'isDisabled'?: boolean; 'isSelected'?: boolean; 'aria-label'?: string; 'key'?: any; 'onClose'?: () => void; 'closeOnSelect'?: boolean; 'isVirtualized'?: boolean; 'onAction'?: (key: Key) => void; } export declare function useMenuItem<T>(props: AriaMenuItemProps, state: TreeState<T>, _ref: RefObject<HTMLElement>): MenuItemAria; export {}; //# sourceMappingURL=useMenuItem.d.ts.map