import * as _nextui_org_system from '@nextui-org/system'; import { Node } from '@react-types/shared'; import { TreeState } from '@react-stately/tree'; import { Key } from 'react'; import { MenuItemProps } from './menu-item.js'; import { MenuSectionBaseProps } from './base/menu-section-base.js'; import 'react/jsx-runtime'; import './use-menu-item.js'; import './base/menu-item-base.js'; import '@nextui-org/theme'; import '@react-aria/menu'; import '@nextui-org/aria-utils'; import 'tailwind-variants'; import '@nextui-org/divider'; interface MenuSectionProps extends MenuSectionBaseProps { item: Node; state: TreeState; /** * The menu items variant. */ variant?: MenuItemProps["variant"]; /** * The menu items color. */ color?: MenuItemProps["color"]; /** * Whether to disable the items animation. * @default false */ disableAnimation?: boolean; /** * Whether the menu should close when the menu item is selected. * @default true */ closeOnSelect?: MenuItemProps["closeOnSelect"]; /** * Callback fired when the menu item is selected. */ onAction?: (key: Key) => void; } /** * @internal */ declare const MenuSection: _nextui_org_system.InternalForwardRefRenderFunction<"li", MenuSectionProps, never>; export { MenuSectionProps, MenuSection as default };