UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

27 lines 1.23 kB
import { InputHTMLAttributes } from 'react'; declare const Search: import("react").ForwardRefExoticComponent<{ /** List of options to show in dropdown */ options: string[]; /** Callback when an option is selected from dropdown */ onSelect?: (value: string) => void; /** Callback when search input changes */ onSearch?: (query: string) => void; /** Control dropdown visibility externally */ showDropdown?: boolean; /** Callback when dropdown open state changes */ onDropdownChange?: (open: boolean) => void; /** Maximum height of dropdown in pixels */ dropdownMaxHeight?: number; /** Text to show when no results are found */ noResultsText?: string; /** Debounce delay in ms for onSearch. Default 0 (no debounce). */ debounceMs?: number; /** Additional CSS classes to apply to the input */ className?: string; /** Additional CSS classes to apply to the container */ containerClassName?: string; /** Callback when clear button is clicked */ onClear?: () => void; } & Omit<InputHTMLAttributes<HTMLInputElement>, "onSelect" | "size"> & import("react").RefAttributes<HTMLInputElement>>; export default Search; //# sourceMappingURL=Search.d.ts.map