interface MentionDropdownProps

Passed to MentionDropdown by TextEditor, from the state of useMentionAutocomplete.

Properties

id: string

The textarea's aria-controls. Option i gets the id ${id}-${i}, which the textarea names as its aria-activedescendant.

onSelect: (username: string) => void
optional
style: CSSProperties

From useAnchoredFloat, or hidden until it has placed the list.

Usage

import { type MentionDropdownProps } from "src/components/editor/MentionDropdown.tsx";