mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 23:00:20 +08:00
f820cb257c
* docs: update demo * update * update
22 lines
679 B
TypeScript
22 lines
679 B
TypeScript
import React from 'react';
|
|
import { FloatButton } from 'antd';
|
|
import { QuestionCircleOutlined, SyncOutlined } from '@ant-design/icons';
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<FloatButton.Group shape="circle" style={{ right: 24 }}>
|
|
<FloatButton icon={<QuestionCircleOutlined />} />
|
|
<FloatButton />
|
|
<FloatButton.BackTop visibilityHeight={0} />
|
|
</FloatButton.Group>
|
|
<FloatButton.Group shape="square" style={{ right: 94 }}>
|
|
<FloatButton icon={<QuestionCircleOutlined />} />
|
|
<FloatButton />
|
|
<FloatButton icon={<SyncOutlined />} />
|
|
<FloatButton.BackTop visibilityHeight={0} />
|
|
</FloatButton.Group>
|
|
</>
|
|
);
|
|
|
|
export default App;
|