rc-search

1.0.4 • Public • Published

Welcome to rc-search 👋

Version License: MIT

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

👤 xiaozhi

🤝 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 ⭐️ if this project helped you!

Package Sidebar

Install

npm i rc-search

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

194 kB

Total Files

5

Last publish

Collaborators

  • chaizhixiang