@base-ui-components/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.
29 lines • 958 B
TypeScript
import * as React from 'react';
import { BaseUIComponentProps, NativeButtonProps } from "../../utils/types.js";
import type { FieldRoot } from "../../field/root/FieldRoot.js";
/**
* A button that opens the popup.
* Renders a `<button>` element.
*/
export declare const ComboboxTrigger: React.ForwardRefExoticComponent<ComboboxTriggerProps & React.RefAttributes<HTMLButtonElement>>;
export interface ComboboxTriggerState extends FieldRoot.State {
/**
* Whether the popup is open.
*/
open: boolean;
/**
* Whether the component should ignore user interaction.
*/
disabled: boolean;
}
export interface ComboboxTriggerProps extends NativeButtonProps, BaseUIComponentProps<'button', ComboboxTrigger.State> {
/**
* Whether the component should ignore user interaction.
* @default false
*/
disabled?: boolean;
}
export declare namespace ComboboxTrigger {
type State = ComboboxTriggerState;
type Props = ComboboxTriggerProps;
}