mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 15:49:10 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
25 lines
596 B
TypeScript
25 lines
596 B
TypeScript
import React from 'react';
|
|
import { SettingOutlined } from '@ant-design/icons';
|
|
import { Button, Input, Space } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Space direction="vertical">
|
|
Input addon Button:
|
|
<Input addonAfter={<Button type="primary">Submit</Button>} defaultValue="mysite" />
|
|
<Input addonAfter={<Button>Submit</Button>} defaultValue="mysite" />
|
|
<br />
|
|
<br />
|
|
Input addon Button icon:
|
|
<Input
|
|
addonAfter={
|
|
<Button>
|
|
<SettingOutlined />
|
|
</Button>
|
|
}
|
|
defaultValue="mysite"
|
|
/>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|