2022-11-09 12:28:04 +08:00
|
|
|
import React from 'react';
|
2022-11-17 13:20:58 +08:00
|
|
|
import { Button, Space } from 'antd';
|
2022-11-09 12:28:04 +08:00
|
|
|
|
|
|
|
const App: React.FC = () => (
|
2022-11-17 13:20:58 +08:00
|
|
|
<Space direction="vertical">
|
|
|
|
<Space>
|
|
|
|
<Button type="primary">Primary</Button>
|
|
|
|
<Button type="primary" disabled>
|
|
|
|
Primary(disabled)
|
|
|
|
</Button>
|
|
|
|
</Space>
|
|
|
|
<Space>
|
|
|
|
<Button>Default</Button>
|
|
|
|
<Button disabled>Default(disabled)</Button>
|
|
|
|
</Space>
|
|
|
|
<Space>
|
|
|
|
<Button type="dashed">Dashed</Button>
|
|
|
|
<Button type="dashed" disabled>
|
|
|
|
Dashed(disabled)
|
|
|
|
</Button>
|
|
|
|
</Space>
|
|
|
|
<Space>
|
|
|
|
<Button type="text">Text</Button>
|
|
|
|
<Button type="text" disabled>
|
|
|
|
Text(disabled)
|
|
|
|
</Button>
|
|
|
|
</Space>
|
|
|
|
<Space>
|
|
|
|
<Button type="link">Link</Button>
|
|
|
|
<Button type="link" disabled>
|
|
|
|
Link(disabled)
|
|
|
|
</Button>
|
|
|
|
</Space>
|
2022-12-17 15:48:29 +08:00
|
|
|
<Space>
|
|
|
|
<Button type="primary" href='https://ant.design/index-cn'>
|
|
|
|
Href Primary
|
|
|
|
</Button>
|
|
|
|
<Button type="primary" href='https://ant.design/index-cn' disabled>
|
|
|
|
Href Primary(disabled)
|
|
|
|
</Button>
|
|
|
|
</Space>
|
2022-11-17 13:20:58 +08:00
|
|
|
<Space>
|
|
|
|
<Button danger>Danger Default</Button>
|
|
|
|
<Button danger disabled>
|
|
|
|
Danger Default(disabled)
|
|
|
|
</Button>
|
|
|
|
</Space>
|
|
|
|
<Space>
|
|
|
|
<Button danger type="text">
|
|
|
|
Danger Text
|
|
|
|
</Button>
|
|
|
|
<Button danger type="text" disabled>
|
|
|
|
Danger Text(disabled)
|
|
|
|
</Button>
|
|
|
|
</Space>
|
|
|
|
<Space>
|
|
|
|
<Button type="link" danger>
|
|
|
|
Danger Link
|
|
|
|
</Button>
|
|
|
|
<Button type="link" danger disabled>
|
|
|
|
Danger Link(disabled)
|
|
|
|
</Button>
|
|
|
|
</Space>
|
|
|
|
<Space className="site-button-ghost-wrapper">
|
2022-11-09 12:28:04 +08:00
|
|
|
<Button ghost>Ghost</Button>
|
|
|
|
<Button ghost disabled>
|
|
|
|
Ghost(disabled)
|
|
|
|
</Button>
|
2022-11-17 13:20:58 +08:00
|
|
|
</Space>
|
|
|
|
</Space>
|
2022-11-09 12:28:04 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|