funda-ui
Version:
React components using pure Bootstrap 5+ which does not contain any external style and script libraries.
42 lines (41 loc) • 1.32 kB
TypeScript
import React from 'react';
export declare type SearchBarProps = {
wrapperClassName?: string;
controlClassName?: string;
controlExClassName?: string;
controlGroupWrapperClassName?: string;
controlGroupTextClassName?: string;
appearance?: string;
isSearchInput?: boolean;
value?: string;
label?: React.ReactNode | string;
name?: string;
units?: React.ReactNode | string;
iconLeft?: React.ReactNode | string;
iconRight?: React.ReactNode | string;
minLength?: any;
maxLength?: any;
readOnly?: any;
disabled?: any;
required?: any;
placeholder?: string;
icon?: React.ReactNode | string;
btnId?: string;
/** -- */
id?: string;
style?: React.CSSProperties;
autoComplete?: string;
autoCapitalize?: string;
spellCheck?: boolean;
tabIndex?: number;
[key: `data-${string}`]: string | undefined;
onClick?: (e: any) => void;
onKeyPressedCallback?: (e: any) => void;
onSubmit?: (e: any) => void;
onChange?: (e: any, param: any) => void;
onBlur?: (e: any, param: any) => void;
onFocus?: (e: any, param: any) => void;
onPressEnter?: (e: any, param: any) => void;
};
declare const SearchBar: React.ForwardRefExoticComponent<SearchBarProps & React.RefAttributes<unknown>>;
export default SearchBar;