ant-design/components/mentions/demo/placement.tsx
黑雨 8fd6ae54e9
feat: fix support options (#38968)
* feat: fix support options

* feat: update package
2022-11-25 11:12:59 +08:00

26 lines
409 B
TypeScript

import React from 'react';
import { Mentions } from 'antd';
const App: React.FC = () => (
<Mentions
style={{ width: '100%' }}
placement="top"
options={[
{
value: 'afc163',
label: 'afc163',
},
{
value: 'zombieJ',
label: 'zombieJ',
},
{
value: 'yesmeck',
label: 'yesmeck',
},
]}
/>
);
export default App;