mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 12:28:33 +08:00
38 lines
999 B
TypeScript
38 lines
999 B
TypeScript
|
import React from 'react';
|
||
|
import { Button, Space } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<div className="space-align-container">
|
||
|
<div className="space-align-block">
|
||
|
<Space align="center">
|
||
|
center
|
||
|
<Button type="primary">Primary</Button>
|
||
|
<span className="mock-block">Block</span>
|
||
|
</Space>
|
||
|
</div>
|
||
|
<div className="space-align-block">
|
||
|
<Space align="start">
|
||
|
start
|
||
|
<Button type="primary">Primary</Button>
|
||
|
<span className="mock-block">Block</span>
|
||
|
</Space>
|
||
|
</div>
|
||
|
<div className="space-align-block">
|
||
|
<Space align="end">
|
||
|
end
|
||
|
<Button type="primary">Primary</Button>
|
||
|
<span className="mock-block">Block</span>
|
||
|
</Space>
|
||
|
</div>
|
||
|
<div className="space-align-block">
|
||
|
<Space align="baseline">
|
||
|
baseline
|
||
|
<Button type="primary">Primary</Button>
|
||
|
<span className="mock-block">Block</span>
|
||
|
</Space>
|
||
|
</div>
|
||
|
</div>
|
||
|
);
|
||
|
|
||
|
export default App;
|