Base UI (Angular) mention-input (Pro) wraps a field and opens caret-anchored suggestions after @. Bind ngModel on the mention wrapper, not on the projected input. It is a ControlValueAccessor: the form value is the text, including inserted handles.
Install with npx base-ui-cli add mention-input.
Unlock it plus 89 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.
Wrap your standard text area or input field with <base-mention-input> and pass an array of users to the [users] input. Try typing @ below.
Bind [(ngModel)] on base-mention-input (ControlValueAccessor). Do not also bind the projected field to the same model.
Value: Ship it @
Site-wide VPAT-style notes live on the accessibility report.
Run the following command to add this component to your project:
npx base-ui-cli add mention-input
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Base UI MCP server.
npx -y base-ui-mcp
Base UI provides standalone components. Import the exact elements you want to use into your component.
// Install: npx base-ui-cli add mention-input
// Paths are relative to aliases.components (default: src/app/components)
import { MentionInputComponent } from './mention-input/mention-input.component';
@Component({
selector: 'app-your-component',
imports: [
MentionInputComponent
],
template: `...`
})
export class YourComponent {} API for mention-input — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
base-mention-input | users | MentionUser[] | [] | Candidate users for mention suggestions. |
Content