ant-design/components/mentions/demo/placement.md
2022-05-21 22:14:15 +08:00

502 B

order title
5
zh-CN en-US
向上展开 Placement

zh-CN

向上展开建议。

en-US

Change the suggestions placement.

import { Mentions } from 'antd';
import React from 'react';

const { Option } = Mentions;

const App: React.FC = () => (
  <Mentions style={{ width: '100%' }} placement="top">
    <Option value="afc163">afc163</Option>
    <Option value="zombieJ">zombieJ</Option>
    <Option value="yesmeck">yesmeck</Option>
  </Mentions>
);

export default App;