Files
NapCatQQ/.pnpm-store/v3/files/06/dec2e779756f88e234ee31f0197cfdf803c6beb165bb06768a7b1a5a273cb8485f8a75de7881d67625c087c33f7f48183316d45d43c7d4c2f254ef2b30c291
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

30 lines
1.3 KiB
Plaintext

import { MultiSelectProps as MultiSelectProps$1, MultiSelectState } from './use-multiselect-state.js';
import { AriaButtonProps } from '@react-types/button';
import { AriaListBoxOptions } from '@react-aria/listbox';
import { HTMLAttributes, RefObject } from 'react';
import { ValidationResult } from '@react-types/shared';
import './use-multiselect-list-state.js';
import '@react-types/overlays';
import '@react-stately/menu';
import '@react-stately/form';
import '@react-stately/list';
type MultiSelectProps<T> = MultiSelectProps$1<T>;
interface MultiSelectAria<T> extends ValidationResult {
/** Props for the label element. */
labelProps: HTMLAttributes<HTMLElement>;
/** Props for the popup trigger element. */
triggerProps: AriaButtonProps;
/** Props for the element representing the selected value. */
valueProps: HTMLAttributes<HTMLElement>;
/** Props for the popup. */
menuProps: AriaListBoxOptions<T>;
/** Props for the select's description element, if any. */
descriptionProps: HTMLAttributes<HTMLElement>;
/** Props for the select's error message element, if any. */
errorMessageProps: HTMLAttributes<HTMLElement>;
}
declare function useMultiSelect<T>(props: MultiSelectProps<T>, state: MultiSelectState<T>, ref: RefObject<HTMLElement>): MultiSelectAria<T>;
export { MultiSelectAria, MultiSelectProps, useMultiSelect };