File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
docs/content/3.components Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,17 @@ props:
51
51
---
52
52
::
53
53
54
+ ### Max Length : badge { label =" Soon " class =" align-text-top " }
55
+
56
+ Use the ` max-length ` prop to set the maximum number of characters allowed in a tag.
57
+
58
+ :: component-code
59
+ ---
60
+ props:
61
+ maxLength: 4
62
+ ---
63
+ ::
64
+
54
65
### Color
55
66
56
67
Use the ` color ` prop to change the ring color when the InputTags is focused.
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ export interface InputTagsProps<T extends InputTagItem = InputTagItem> extends P
18
18
as? : any
19
19
/** The placeholder text when the input is empty. */
20
20
placeholder? : string
21
+ /** The maximum number of character allowed. */
22
+ maxLength? : number
21
23
/**
22
24
* @defaultValue 'primary'
23
25
*/
@@ -182,6 +184,7 @@ defineExpose({
182
184
ref =" inputRef"
183
185
v-bind =" { ...$attrs, ...ariaAttrs }"
184
186
:placeholder =" placeholder"
187
+ :max-length =" maxLength"
185
188
:class =" ui.input({ class: props.ui?.input })"
186
189
/>
187
190
You can’t perform that action at this time.
0 commit comments