ant-design/components/space/demo/wrap.md
Tom Xu 94f2ae9e87
feat: Space add wrap (#27910)
* feat: Space add wrap

* improve

* fix

* Update index.tsx

* change doc

* change docs

* change docs

* 😂

* improve

* change doc

* improve code

* Update Item.tsx
2020-11-27 13:40:40 +08:00

457 B

order title
98
zh-CN en-US
自动换行 Wrap

zh-CN

自动换行。

en-US

Auto wrap line.

import { Space, Button } from 'antd';

const Demo = () => {
  return (
    <Space size={[8, 16]} wrap>
      {new Array(20).fill(null).map((_, index) => (
        // eslint-disable-next-line react/no-array-index-key
        <Button key={index}>Button</Button>
      ))}
    </Space>
  );
};

ReactDOM.render(<Demo />, mountNode);