ant-design/components/input/demo/search-input-loading.md
偏右 d2c541b4e2
fix: 🐛 Input.Search height affected by suffix (#23527)
* 🎬 improve Input demo code

* style: fix Input.Search height stretched by suffix

close #23523

* fix react key warning

*  fix demo snapshot
2020-04-23 18:11:11 +08:00

472 B

order title
5
zh-CN en-US
搜索框 loading Search box with loading

zh-CN

用于 onSearch 的时候展示 loading

en-US

Search loading when onSearch.

import { Input } from 'antd';

const { Search } = Input;

ReactDOM.render(
  <>
    <Search placeholder="input search loading deault" loading />
    <br />
    <br />
    <Search placeholder="input search loading with enterButton" loading enterButton />
  </>,
  mountNode,
);