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

Property
Description
Type
Default

options

Array of options (strings or objects with value and label) string[] | { value: string; label?: string }[] []

prefix

Trigger prefix character(s) string | string[] '@'

...TextInputProps

Inherits all props from TextInput any