ant-design/components/button/demo/debug-block.tsx
lijianan e597fe8ec6
fix: Button block prop not work (#39992)
* fix: Button block prop not work

* fix

* remove auto

* update demo

* fix

* fix

* fix width

* fix

* update demo
2023-01-06 09:46:00 +08:00

15 lines
374 B
TypeScript

import React from 'react';
import { Form, Button } from 'antd';
import { DownloadOutlined } from '@ant-design/icons';
const App: React.FC = () => (
<Form.Item>
<Button size="large" shape="round" block style={{ marginBottom: 12 }}>
Submit
</Button>
<Button size="large" shape="round" icon={<DownloadOutlined />} />
</Form.Item>
);
export default App;