UNPKG

@vela-ui/react

Version:

Vela UI React components

26 lines (23 loc) 1.56 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { ComboBoxProps, ListBoxProps } from 'react-aria-components'; import { Button } from './button.js'; import { DropdownDescription, DropdownItem, DropdownLabel, DropdownSection } from './dropdown.js'; import { FieldProps } from './field.js'; import { Input } from './input.js'; import { PopoverProps } from './popover.js'; import 'tailwind-variants'; interface ComboboxProps<T extends object> extends ComboBoxProps<T>, FieldProps { } declare function Combobox<T extends object>({ label, description, errorMessage, children, className, ...props }: ComboboxProps<T>): react_jsx_runtime.JSX.Element; declare function ComboboxPopover({ className, ...props }: PopoverProps): react_jsx_runtime.JSX.Element; declare function ComboboxList<T extends object>({ className, ...props }: ListBoxProps<T>): react_jsx_runtime.JSX.Element; interface ComboboxInputProps extends React.ComponentProps<typeof Input> { endElement?: React.ReactNode; endElementProps?: React.ComponentProps<typeof Button>; } declare function ComboboxInput({ size, endElementProps, endElement, ...props }: ComboboxInputProps): react_jsx_runtime.JSX.Element; declare const ComboboxSection: typeof DropdownSection; declare const ComboboxItem: typeof DropdownItem; declare const ComboboxLabel: typeof DropdownLabel; declare const ComboboxDescription: typeof DropdownDescription; export { Combobox, ComboboxDescription, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxPopover, type ComboboxProps, ComboboxSection };