zarm
Version:
基于 React 的移动端UI库
13 lines (12 loc) • 442 B
TypeScript
import * as React from 'react';
import type { Locale } from '../config-provider/interface';
export default interface BaseSearchBarProps {
shape?: 'rect' | 'radius' | 'round';
icon?: React.ReactNode;
cancelText?: React.ReactNode;
showCancel?: boolean | ((focus: boolean, value: string) => boolean);
clearable?: boolean;
onCancel?: () => void;
onSubmit?: (value: string) => void;
locale?: Locale['SearchBar'];
}