mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
50 lines
1.2 KiB
TypeScript
50 lines
1.2 KiB
TypeScript
|
import React from 'react';
|
||
|
import { CustomerServiceOutlined, QuestionCircleOutlined, SyncOutlined } from '@ant-design/icons';
|
||
|
import { FloatButton } from 'antd';
|
||
|
|
||
|
/** Test usage. Do not use in your production. */
|
||
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalFloatButton } = FloatButton;
|
||
|
|
||
|
export default () => (
|
||
|
<div style={{ display: 'flex', columnGap: 16, alignItems: 'center' }}>
|
||
|
<InternalFloatButton backTop />
|
||
|
<InternalFloatButton icon={<CustomerServiceOutlined />} />
|
||
|
<InternalFloatButton
|
||
|
icon={<QuestionCircleOutlined />}
|
||
|
description="HELP"
|
||
|
shape="square"
|
||
|
type="primary"
|
||
|
/>
|
||
|
<InternalFloatButton
|
||
|
shape="square"
|
||
|
items={[
|
||
|
{
|
||
|
icon: <QuestionCircleOutlined />,
|
||
|
},
|
||
|
{
|
||
|
icon: <CustomerServiceOutlined />,
|
||
|
},
|
||
|
{
|
||
|
icon: <SyncOutlined />,
|
||
|
},
|
||
|
]}
|
||
|
/>
|
||
|
<InternalFloatButton
|
||
|
icon={<CustomerServiceOutlined />}
|
||
|
trigger="click"
|
||
|
open
|
||
|
items={[
|
||
|
{
|
||
|
icon: <QuestionCircleOutlined />,
|
||
|
},
|
||
|
{
|
||
|
icon: <CustomerServiceOutlined />,
|
||
|
},
|
||
|
{
|
||
|
icon: <SyncOutlined />,
|
||
|
},
|
||
|
]}
|
||
|
/>
|
||
|
</div>
|
||
|
);
|