@mijadesign/mjui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
25 lines (24 loc) • 600 B
TypeScript
import { FC } from 'react';
import { TaroSearchBarProps } from './type';
interface SearchBarProps extends Partial<TaroSearchBarProps> {
/**
* 是否展示边框
* @default false
*/
border?: boolean
initialType?: 'center' | 'default';
/**
* 输入框默认暗纹
* @default 请输入
*/
placeholder?: string
onClick?: () => void;
/**
* 输入框高度
* @default 32
*/
contentHeight?: number
}
declare const SearchBar: FC<Partial<SearchBarProps>>;
export type { SearchBarProps } from '@nutui/nutui-react-taro';
export { SearchBar };