Rebar UI

1.0

opinion

Mentions

A textarea that suggests people as you type @.

Comment boxType @ and pick a name
With a mention
Two rows
No people

In context

Task commentsReplying on Offline sync for tasks
Offline sync for tasksTideline mobile
JW

Jonas Weber 09:12

What slipped on the mobile release this week?

Props

PropTypeRequiredDefault
valuestring | undefinedNo—
defaultValuestring | undefinedNo—
onValueChange((value: string) => void) | undefinedNo—
optionsMentionOption[]Yes—
placeholderstring | undefinedNo—
rowsnumber | undefinedNo3
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—

data-rebar-* attributes

data-rebar-component="mentions"; parts: input (the real textarea), list, option (the highlighted one carries data-rebar-active).

Migrating to Ant Design

AntD's own Mentions is a close direct equivalent — value/onValueChange/options/placeholder map to AntD's value/onChange/options/placeholder.