@topjoao/top-design-system 0.2.0 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -836,7 +836,8 @@ const descricao = ref('')
836
836
  label="Descrição"
837
837
  placeholder="Descreva o item"
838
838
  :rows="5"
839
- maxlength="500"
839
+ :max-length="500"
840
+ show-counter
840
841
  required
841
842
  />
842
843
  </template>
@@ -853,6 +854,14 @@ const descricao = ref('')
853
854
  | `readonly` | `boolean` | `false` |
854
855
  | `rows` | `number` | `4` |
855
856
  | `autoResize` | `boolean` | `false` |
857
+ | `maxLength` | `number` | `undefined` (sem limite) |
858
+ | `showCounter` | `boolean` | `false` |
859
+
860
+ `maxLength` define o limite nativo de caracteres para digitação e colagem.
861
+ `showCounter` exibe a contagem abaixo do campo, alinhada à direita, no formato
862
+ `12 / 500 caracteres`. Sem limite configurado, mostra apenas `12 caracteres`.
863
+ O contador acompanha o `v-model`; ocultá-lo não remove o limite. Valores atribuídos
864
+ diretamente ao `v-model` não são truncados pelo limite nativo do navegador.
856
865
 
857
866
  Atributos e eventos nativos adicionais, como `name`, `maxlength`, `aria-*`,
858
867
  `data-*`, `focus` e `blur`, são repassados ao elemento `textarea` interno.