Formularios v1.0.0

Campo de menciones

Un área de texto con soporte de menciones en línea. Escribe un carácter disparador (por defecto "@") para abrir un desplegable filtrable de usuarios o elementos. Soporta navegación por teclado, visualización de avatares y almacena datos estructurados de menciones en un campo oculto como JSON.

Vista Previa y Código

Opciones

Nombre Tipo Predeterminado Descripción
name * String requerido 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

Registro de Cambios 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

Obtener Acceso Completo

Desbloquea el código fuente de este componente y todos los demás. Un solo pago para acceso de por vida.

Obtener Acceso