mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
23 lines
516 B
TypeScript
23 lines
516 B
TypeScript
import React, { useState } from 'react';
|
|
import { Button, Slider, Space } from 'antd';
|
|
|
|
const App: React.FC = () => {
|
|
const [size, setSize] = useState(8);
|
|
|
|
return (
|
|
<>
|
|
<Slider value={size} onChange={(value) => setSize(value)} />
|
|
<br />
|
|
<br />
|
|
<Space size={size}>
|
|
<Button type="primary">Primary</Button>
|
|
<Button>Default</Button>
|
|
<Button type="dashed">Dashed</Button>
|
|
<Button type="link">Link</Button>
|
|
</Space>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default App;
|