RayCraftDocs
v1.0.3 raycraft.dev
On this page

Mention

Free

A text box that suggests names after a trigger character (@ by default). Arrow keys and Enter choose; the chosen name is inserted with the trigger.

Example

Mention control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
DisplayNamestringName used in validation messages.
HelperTextstringHint shown below the field.
ItemsIEnumerable<MentionItem>The options to choose from.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
LinesintNumber of text lines; above 1 the field becomes a multiline text area.
MaxItemsintLargest number of suggestions shown. For Autocomplete and a searchable Select 0 (the default) shows every match of a fixed list and the first 10 results of an ItemsProvider; Breadcrumbs, Mention and MultiColumnComboBox have their own defaults.
PlaceholderstringPlaceholder shown when the field is empty.
ReadOnlyboolShows the value but does not allow changes.
StylestringInline style added to the root element.
TriggerstringContent of the button that opens the menu (for example an Avatar and a name). Replaces the label and the chevron; set Label for the accessible name (Menu).
ValuestringCurrent value. Use with @bind-Value.

Events

EventTypeDescription
OnMentionEventCallback<MentionItem>
ValueChangedEventCallback<string>Raised when the value changes.

Package

Mention is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.