antd-mobile
Version:
基于 React 的移动设计规范实现
39 lines (38 loc) • 883 B
TypeScript
export interface SearchBarProps {
style?: any;
defaultValue?: string;
value?: string;
placeholder?: string;
onSubmit?: Function;
onChange?: Function;
onFocus?: () => void;
onBlur?: () => void;
onCancel?: Function;
showCancelButton?: boolean;
cancelText?: string;
disabled?: boolean;
styles?: any;
autoFocus?: boolean;
focused?: boolean;
/** web only */
prefixCls?: string;
className?: string;
onClear?: Function;
}
export interface SearchBarState {
value?: string;
focus?: boolean;
focused?: boolean;
}
export declare const defaultProps: {
prefixCls: string;
placeholder: string;
onSubmit: () => void;
onChange: () => void;
onFocus: () => void;
onBlur: () => void;
onClear: () => void;
showCancelButton: boolean;
cancelText: string;
disabled: boolean;
};