mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
34a277cdaa
* docs: delete redundant codes repetitive examples that can make it difficult for developers to read * chore: update snapshot * docs(badge): wrapping documents with `Space` * chore: update snapshot * chore(space): optimize documents easy to read * chore: update badge demo * chore: update demo * Revert "chore(space): optimize documents" This reverts commit 88a4378f16cede5b628f885a48a341d507fd53e3. * chore: update snapshots * chore(button): add debug demo * test(button): update snapshots * docs(button): example document beautify * test(button): update snapshots commit by af04705c8f * test(alert): update snapshots * chore: Reverse format
66 lines
1.5 KiB
TypeScript
66 lines
1.5 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 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;
|