Formulários v1.0.0

Campo de menção

Uma área de texto com suporte a menções em linha. Digite um caractere de gatilho (padrão "@") para abrir uma lista suspensa filtrável de usuários ou itens. Suporta navegação por teclado, exibição de avatar e armazena dados estruturados de menção em um campo oculto como JSON.

Pré-visualização e Código

Opções

Nome Tipo Padrão Descrição
name * String obrigatório 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

Changelog 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

Obter Acesso Completo

Desbloqueie o código-fonte deste componente e de todos os outros. Pagamento único para acesso vitalício.

Obter Acesso Agora