Files
NapCatQQ/.pnpm-store/v3/files/d6/78dee486f90fa2b9cfb47aac910eb608d8385b499ea23fb91f805852b5ad797bfb400ef2d3097221a506d7823f2c6713c99a24d383b6ea0d93dac2ec4aa7b1
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

48 lines
1.4 KiB
Plaintext

import * as _heroui_system from '@heroui/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 '@heroui/theme';
import '@react-aria/menu';
import '@heroui/aria-utils';
import 'tailwind-variants';
import '@heroui/divider';
interface MenuSectionProps<T extends object = object> extends MenuSectionBaseProps {
item: Node<T>;
state: TreeState<T>;
/**
* 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: _heroui_system.InternalForwardRefRenderFunction<"li", MenuSectionProps<object>, never>;
export { MenuSectionProps, MenuSection as default };