You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
import { CustomerServiceOutlined, QuestionCircleOutlined, SyncOutlined } from '@ant-design/icons';
|
|
import { FloatButton } from 'antd';
|
|
import React from 'react';
|
|
|
|
/** Test usage. Do not use in your production. */
|
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalFloatButton } = FloatButton;
|
|
|
|
const App: React.FC = () => (
|
|
<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
|
|
open
|
|
icon={<CustomerServiceOutlined />}
|
|
trigger="click"
|
|
items={[
|
|
{ icon: <QuestionCircleOutlined /> },
|
|
{ icon: <CustomerServiceOutlined /> },
|
|
{ icon: <SyncOutlined /> },
|
|
]}
|
|
/>
|
|
</div>
|
|
);
|
|
|
|
export default App;
|
|
|