mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
9459cbfaf8
* docs: FloatBotton open 属性说明 * test: update snapshots * demo: add controlled demo * demo: update demo * feat: add warning * feat: update warning * demo: update controlled demo --------- Co-authored-by: 二货机器人 <smith3816@gmail.com>
29 lines
681 B
TypeScript
29 lines
681 B
TypeScript
import { CommentOutlined, CustomerServiceOutlined } from '@ant-design/icons';
|
|
import { FloatButton } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<FloatButton.Group
|
|
trigger="click"
|
|
type="primary"
|
|
style={{ right: 24 }}
|
|
icon={<CustomerServiceOutlined />}
|
|
>
|
|
<FloatButton />
|
|
<FloatButton icon={<CommentOutlined />} />
|
|
</FloatButton.Group>
|
|
<FloatButton.Group
|
|
trigger="hover"
|
|
type="primary"
|
|
style={{ right: 94 }}
|
|
icon={<CustomerServiceOutlined />}
|
|
>
|
|
<FloatButton />
|
|
<FloatButton icon={<CommentOutlined />} />
|
|
</FloatButton.Group>
|
|
</>
|
|
);
|
|
|
|
export default App;
|