UNPKG

@trail-ui/react

Version:
20 lines (17 loc) 977 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { SectionProps, ListBoxProps as ListBoxProps$1 } from 'react-aria-components'; import { ListBoxItemProps } from '../listbox/listbox-item.js'; import '@trail-ui/theme'; import 'react'; interface ListBoxProps<T> extends Omit<ListBoxProps$1<T>, 'layout' | 'orientation'> { } declare function ListBox<T extends object>({ children, ...props }: ListBoxProps<T>): react_jsx_runtime.JSX.Element; declare function ListBoxItem(props: ListBoxItemProps): react_jsx_runtime.JSX.Element; declare function DropdownItem({ destructive, ...props }: ListBoxItemProps & { destructive?: true; }): react_jsx_runtime.JSX.Element; interface DropdownSectionProps<T> extends SectionProps<T> { title?: string; } declare function DropdownSection<T extends object>({ className, ...props }: DropdownSectionProps<T>): react_jsx_runtime.JSX.Element; export { DropdownItem, DropdownSection, DropdownSectionProps, ListBox, ListBoxItem };