Mention

The Mention component allows users to mention people, tags, or other entities using a prefix like @ or #.

Example Usage

Custom Prefix

You can use different prefixes like # for tags.

Custom Items

You can use the MentionItem component to pass custom content, such as avatars or icons.

John Doe
JS
Jane Smith
`} language='astro' filename='CustomItems.astro' />

Multiline

Mention works great with multiline textareas.

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