Formulaires v1.0.0

Champ de mention

Une zone de texte avec support de mentions en ligne. Tapez un caractère déclencheur (par défaut « @ ») pour ouvrir une liste déroulante filtrable d'utilisateurs ou d'éléments. Prend en charge la navigation au clavier, l'affichage d'avatars et stocke les données de mention structurées dans un champ caché au format JSON.

Aperçu et code

Options

Nom Type Par défaut Description
name * String requis Form field name for the hidden input storing mention data
value String "" Initial text value for the textarea
placeholder String "" Placeholder text for the textarea
trigger String "@" Character that triggers the mention dropdown
items Array [] Array of mentionable items with keys: id, name, avatar (optional)
max_suggestions Integer 5 Maximum number of suggestions shown in the dropdown
label String nil Label text rendered above the textarea

Journal des modifications v1.0.0

- Initial release with trigger character detection
- Filterable dropdown with keyboard navigation
- Avatar support with fallback initials
- Structured JSON mention data in hidden input
- Dark mode support

Obtenir l'accès complet

Débloquez le code source de ce composant et de tous les autres. Paiement unique pour un accès à vie.

Obtenir l'accès maintenant