UNPKG

@alice-ui/react

Version:
34 lines (31 loc) 1.15 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as react from 'react'; import { MenuVariantProps, SlotsToClasses, MenuSlots } from '@alice-ui/theme'; import { ListBoxProps as ListBoxProps$1 } from 'react-aria-components'; import { ListBoxItemProps } from './listbox-item.mjs'; interface ListBoxProps<T> extends ListBoxProps$1<T>, MenuVariantProps { /** * The listbox classNames. */ classNames?: SlotsToClasses<MenuSlots>; /** * The menu items classNames. */ itemClasses?: ListBoxItemProps['classNames']; /** * The menu items variant. */ variant?: ListBoxItemProps['variant']; /** * The menu items color. */ color?: ListBoxItemProps['color']; } interface InternalListBoxContextValue { itemClasses?: ListBoxItemProps['classNames']; variant?: ListBoxItemProps['variant']; color?: ListBoxItemProps['color']; } declare const InternalListBoxContext: react.Context<InternalListBoxContextValue>; declare function ListBox<T extends object>(props: ListBoxProps<T>): react_jsx_runtime.JSX.Element; export { InternalListBoxContext, ListBox, type ListBoxProps };