mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
8fd6ae54e9
* feat: fix support options * feat: update package
22 lines
398 B
TypeScript
22 lines
398 B
TypeScript
import React from 'react';
|
|
import { Mentions } from 'antd';
|
|
|
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalMentions } = Mentions;
|
|
|
|
const options = [
|
|
{
|
|
value: 'afc163',
|
|
label: 'afc163',
|
|
},
|
|
{
|
|
value: 'zombieJ',
|
|
label: 'zombieJ',
|
|
},
|
|
];
|
|
|
|
const App: React.FC = () => (
|
|
<InternalMentions style={{ width: '100%' }} value="@" options={options} />
|
|
);
|
|
|
|
export default App;
|