@base-ui/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
42 lines • 1.42 kB
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps } from "../../internals/types.js";
import type { FieldRoot } from "../../field/root/FieldRoot.js";
import type { Side } from "../../utils/useAnchorPositioning.js";
/**
* A wrapper for the input and its associated controls.
* Renders a `<div>` element.
*
* Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
*/
export declare const ComboboxInputGroup: React.ForwardRefExoticComponent<Omit<ComboboxInputGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
export interface ComboboxInputGroupState extends FieldRoot.State {
/**
* Whether the corresponding popup is open.
*/
open: boolean;
/**
* Whether the component should ignore user interaction.
*/
disabled: boolean;
/**
* Whether the component should ignore user edits.
*/
readOnly: boolean;
/**
* Indicates which side the corresponding popup is positioned relative to its anchor.
*/
popupSide: Side | null;
/**
* Present when the corresponding items list is empty.
*/
listEmpty: boolean;
/**
* Whether the combobox doesn't have a value.
*/
placeholder: boolean;
}
export interface ComboboxInputGroupProps extends BaseUIComponentProps<'div', ComboboxInputGroup.State> {}
export declare namespace ComboboxInputGroup {
type State = ComboboxInputGroupState;
type Props = ComboboxInputGroupProps;
}