mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
f3231bc375
* fix: disabled style miss when has href on Button * fix: Space lead to change hover color * style: format * fix: use &&& solve type style effect * fix: replace &&& with .ant-btn&:hover * chore: add demo * 更新文档Snapshot * 更新ci快照
74 lines
1.7 KiB
TypeScript
74 lines
1.7 KiB
TypeScript
import React from 'react';
|
|
import { Button, Space } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<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>
|
|
<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>
|
|
<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">
|
|
<Button ghost>Ghost</Button>
|
|
<Button ghost disabled>
|
|
Ghost(disabled)
|
|
</Button>
|
|
</Space>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|