@trail-ui/react
Version:
24 lines (21 loc) • 891 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import * as react from 'react';
import { MenuVariantProps, SlotsToClasses, MenuSlots } from '@trail-ui/theme';
import { ListBoxProps as ListBoxProps$1 } from 'react-aria-components';
import { ListBoxItemProps } from './listbox-item.js';
interface ListBoxProps<T> extends ListBoxProps$1<T>, MenuVariantProps {
/**
* The listbox classNames.
*/
classNames?: SlotsToClasses<MenuSlots>;
/**
* The menu items classNames.
*/
itemClasses?: ListBoxItemProps['classNames'];
}
interface InternalListBoxContextValue {
itemClasses?: ListBoxItemProps['classNames'];
}
declare const InternalListBoxContext: react.Context<InternalListBoxContextValue>;
declare function ListBox<T extends object>(props: ListBoxProps<T>): react_jsx_runtime.JSX.Element;
export { InternalListBoxContext, ListBox, ListBoxProps };