@payfit/unity-components
Version:
19 lines (18 loc) • 653 B
TypeScript
interface AutocompleteClearButtonProps {
isReadOnly?: boolean;
isDisabled?: boolean;
className?: string;
}
/**
* The `ClearButton` component is used within the `Autocomplete` component to provide a way to clear the current autocomplete input.
* It appears only when there is text in the autocomplete field and disappears when the field is empty.
* @example
* ```tsx
* <ClearButton intl={intl} />
* ```
*/
declare const AutocompleteClearButton: {
({ className, isReadOnly, isDisabled, }: AutocompleteClearButtonProps): import("react/jsx-runtime").JSX.Element | null;
displayName: string;
};
export { AutocompleteClearButton };