13 |
14 | ## Dynamic
15 |
16 |
17 |
18 | ## Filter
19 |
20 | Option has `key` and filter only hit by `key`
21 |
22 |
23 |
24 | ## Multiple Prefix
25 |
26 |
27 |
28 | ## Split
29 |
30 |
31 |
32 | ## Textarea
33 |
34 |
35 |
36 | ## Debug
37 |
38 |
39 |
40 | ## Allow Clear
41 |
42 |
43 |
44 | ## On Scroll
45 |
46 |
47 |
--------------------------------------------------------------------------------
/docs/examples/allowClear.tsx:
--------------------------------------------------------------------------------
1 | import Mentions from '@rc-component/mentions';
2 | import React, { useState } from 'react';
3 |
4 | export default function App() {
5 | const [value, setValue] = useState('hello world');
6 |
7 | return (
8 | Uncontrolled
10 |controlled
12 |{searchRef.current}
89 | Only validate string length less than 3
16 |