mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 07:28:28 +08:00
8fd6ae54e9
* feat: fix support options * feat: update package
26 lines
409 B
TypeScript
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;
|