👋
Welcome to rc-search
search ui component for react
🏠 Homepage
Install
npm install rc-search
Usage
import Search from 'rc-search';
import 'rc-search/lib/index.css'
const search = (value: string)=> {
console.log(value);
}
export default () => <Search onSearch={search}/>;
API
name | type | default | description |
---|---|---|---|
value | String | - | 搜索框内容 |
placeholder | String | 请输入 | 搜索框提示信息 |
onSearch | function(value: string) | - | 搜索框值变化时回调 |
Author
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
Give a