@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
20 lines (19 loc) • 768 B
TypeScript
import { ElementProps, Factory } from '../../../core';
import { InputProps } from '../../Input/Input';
export type MenuSearchStylesNames = 'search';
export interface MenuSearchProps extends InputProps, ElementProps<'input', 'size'> {
/** If set, clears the search value after the menu close transition completes. Requires a controlled `value`/`onChange` pair. @default true */
clearSearchOnClose?: boolean;
}
export type MenuSearchFactory = Factory<{
props: MenuSearchProps;
ref: HTMLInputElement;
stylesNames: MenuSearchStylesNames;
compound: true;
}>;
export declare const MenuSearch: import("../../..").MantineComponent<{
props: MenuSearchProps;
ref: HTMLInputElement;
stylesNames: MenuSearchStylesNames;
compound: true;
}>;