@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.
40 lines • 1.29 kB
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps, NativeButtonProps } from "../../internals/types.js";
import { TransitionStatus } from "../../internals/useTransitionStatus.js";
/**
* Clears the value when clicked.
* Renders a `<button>` element.
*
* Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
*/
export declare const ComboboxClear: React.ForwardRefExoticComponent<Omit<ComboboxClearProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
export interface ComboboxClearState {
/**
* Whether the popup is open.
*/
open: boolean;
/**
* Whether the component should ignore user interaction.
*/
disabled: boolean;
/**
* The transition status of the component.
*/
transitionStatus: TransitionStatus;
}
export interface ComboboxClearProps extends NativeButtonProps, BaseUIComponentProps<'button', ComboboxClearState> {
/**
* Whether the component should ignore user interaction.
* @default false
*/
disabled?: boolean | undefined;
/**
* Whether the component should remain mounted in the DOM when not visible.
* @default false
*/
keepMounted?: boolean | undefined;
}
export declare namespace ComboboxClear {
type State = ComboboxClearState;
type Props = ComboboxClearProps;
}