Mention
The Mention component allows users to mention people, tags, or other entities using a prefix like @ or #.
Example Usage
afc163
zombieJ
yesmeck
No matches
Custom Prefix
You can use different prefixes like # for tags.
astro
react
vue
svelte
No matches
CustomPrefix.astro
<Mention
id='ment-hash'
label='Tags'
placeholder='Type # to tag...'
prefix='#'
options={['astro', 'react', 'vue', 'svelte']}
/> Custom Items
You can use the MentionItem component to pass custom content, such as avatars or icons.
JD
JS
No matches
JS
Multiline
Mention works great with multiline textareas.
afc163
zombieJ
yesmeck
astro
react
No matches
API
| Propiedad | Descripción | Tipo | Por defecto |
|---|---|---|---|
| options | Arreglo de opciones (cadenas u objetos con valor y etiqueta) | string[] | { value: string; label?: string }[] | [] |
| prefix | Carácter(es) prefijo desencadenador | string | string[] | '@' |
| ...TextInputProps | Inherits all props from TextInput | any |