mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
* chore: init * chore: badge * test: update test case * chore: clean up part * chore: fix lint * docs: update doc * docs: api in * test: coverage * docs: update doc * chore: simplify * test: fix test case * chore: fix lint * chore: fix lint * chore: simplify * chore: update comment
40 lines
1.1 KiB
TypeScript
40 lines
1.1 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;
|
|
|
|
const App: React.FC = () => (
|
|
<div style={{ display: 'flex', columnGap: 16, alignItems: 'center' }}>
|
|
<InternalFloatButton backTop />
|
|
<InternalFloatButton icon={<CustomerServiceOutlined />} />
|
|
<InternalFloatButton
|
|
icon={<QuestionCircleOutlined />}
|
|
content="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;
|