@warp-ds/elements 2.9.0-next.5 → 2.9.0

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.
Files changed (79) hide show
  1. package/dist/custom-elements.json +221 -118
  2. package/dist/docs/affix/affix.md +49 -61
  3. package/dist/docs/affix/api.md +25 -23
  4. package/dist/docs/affix/examples.md +24 -38
  5. package/dist/docs/alert/accessibility.md +4 -9
  6. package/dist/docs/alert/alert.md +36 -51
  7. package/dist/docs/alert/api.md +12 -12
  8. package/dist/docs/alert/examples.md +20 -30
  9. package/dist/docs/attention/accessibility.md +50 -0
  10. package/dist/docs/attention/api.md +72 -59
  11. package/dist/docs/attention/attention.md +305 -56
  12. package/dist/docs/attention/examples.md +91 -0
  13. package/dist/docs/attention/usage.md +91 -0
  14. package/dist/docs/badge/accessibility.md +44 -0
  15. package/dist/docs/badge/api.md +12 -8
  16. package/dist/docs/badge/badge.md +178 -10
  17. package/dist/docs/badge/examples.md +69 -0
  18. package/dist/docs/badge/usage.md +53 -0
  19. package/dist/docs/button/api.md +46 -42
  20. package/dist/docs/button/button.md +46 -42
  21. package/dist/docs/card/api.md +11 -11
  22. package/dist/docs/card/card.md +11 -11
  23. package/dist/docs/combobox/api.md +62 -62
  24. package/dist/docs/combobox/combobox.md +62 -62
  25. package/dist/docs/datepicker/api.md +74 -66
  26. package/dist/docs/datepicker/datepicker.md +74 -66
  27. package/dist/docs/expandable/api.md +26 -26
  28. package/dist/docs/expandable/expandable.md +26 -26
  29. package/dist/docs/link/api.md +28 -28
  30. package/dist/docs/link/link.md +28 -28
  31. package/dist/docs/page-indicator/api.md +6 -6
  32. package/dist/docs/page-indicator/page-indicator.md +6 -6
  33. package/dist/docs/pagination/api.md +3 -3
  34. package/dist/docs/pagination/pagination.md +3 -3
  35. package/dist/docs/pill/api.md +19 -15
  36. package/dist/docs/pill/pill.md +19 -15
  37. package/dist/docs/select/api.md +44 -44
  38. package/dist/docs/select/select.md +44 -44
  39. package/dist/docs/slider/api.md +80 -78
  40. package/dist/docs/slider/slider.md +80 -78
  41. package/dist/docs/slider-thumb/api.md +28 -76
  42. package/dist/docs/slider-thumb/slider-thumb.md +28 -76
  43. package/dist/docs/switch/api.md +16 -16
  44. package/dist/docs/switch/switch.md +16 -16
  45. package/dist/docs/tab/api.md +26 -40
  46. package/dist/docs/tab/tab.md +26 -40
  47. package/dist/docs/tab-panel/api.md +1 -17
  48. package/dist/docs/tab-panel/tab-panel.md +1 -17
  49. package/dist/docs/tabs/api.md +3 -3
  50. package/dist/docs/tabs/tabs.md +3 -3
  51. package/dist/docs/textarea/accessibility.md +5 -0
  52. package/dist/docs/textarea/api.md +52 -65
  53. package/dist/docs/textarea/examples.md +81 -0
  54. package/dist/docs/textarea/textarea.md +151 -65
  55. package/dist/docs/textarea/usage.md +9 -0
  56. package/dist/docs/textfield/accessibility.md +15 -0
  57. package/dist/docs/textfield/api.md +86 -83
  58. package/dist/docs/textfield/examples.md +130 -0
  59. package/dist/docs/textfield/textfield.md +258 -86
  60. package/dist/docs/textfield/usage.md +26 -0
  61. package/dist/index.d.ts +456 -330
  62. package/dist/packages/attention/attention.d.ts +46 -37
  63. package/dist/packages/attention/attention.js +20 -20
  64. package/dist/packages/attention/attention.js.map +3 -3
  65. package/dist/packages/badge/badge.d.ts +7 -5
  66. package/dist/packages/badge/badge.js.map +2 -2
  67. package/dist/packages/datepicker/datepicker.js +1 -1
  68. package/dist/packages/datepicker/datepicker.js.map +2 -2
  69. package/dist/packages/datepicker/datepicker.react.stories.d.ts +9 -1
  70. package/dist/packages/datepicker/react.d.ts +4 -0
  71. package/dist/packages/datepicker/react.js +4 -0
  72. package/dist/packages/textarea/textarea.d.ts +38 -29
  73. package/dist/packages/textarea/textarea.js.map +2 -2
  74. package/dist/packages/textfield/textfield.d.ts +57 -60
  75. package/dist/packages/textfield/textfield.js +5 -5
  76. package/dist/packages/textfield/textfield.js.map +2 -2
  77. package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
  78. package/dist/web-types.json +573 -153
  79. package/package.json +1 -2
@@ -2,154 +2,233 @@
2
2
 
3
3
  ## Description
4
4
 
5
- A single line text input element.
5
+ A multi-line text input with built-in form validation, auto-resizing, and styling support.
6
6
 
7
- [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
7
+ The component automatically handles:
8
+ - Form integration
9
+ - Auto-resizing based on content and row constraints
10
+ - Built-in validation with customizable error messages
11
+ - Accessibility attributes and labeling
8
12
 
9
13
  ## Usage
10
14
 
15
+ A multi-line text input with built-in form validation, auto-resizing, and styling support.
16
+
17
+ The component automatically handles:
18
+
19
+ - Form integration
20
+ - Auto-resizing based on content and row constraints
21
+ - Built-in validation with customizable error messages
22
+ - Accessibility attributes and labeling
23
+
11
24
  ## Accessibility
12
25
 
13
- ## Examples
26
+ If a visible label isn't specified, an `aria-label` must be provided to the text field for accessibility. If the field is labeled by a separate element, an `aria-labelledby` property must be provided using the `id` of the labeling element instead.
14
27
 
15
- ## API Documentation
28
+ - Always provide a visible label (do not rely on `placeholder` alone).
29
+ - Do not rely on color alone for interaction feedback (e.g. error states).
16
30
 
17
- ### Properties
31
+ ## Examples
18
32
 
19
- | Name | Type | Default | Summary |
20
- |-|-|-|-|
21
- | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
22
- | disabled | `boolean` | `false` | - |
23
- | invalid | `boolean` | `false` | - |
24
- | label | `string` | `-` | - |
25
- | helpText | `string` | `-` | - |
26
- | maxRows | `number` | `-` | - |
27
- | minRows | `number` | `-` | - |
28
- | name | `string` | `-` | - |
29
- | placeholder | `string` | `-` | - |
30
- | readOnly | `boolean` | `false` | - |
31
- | readonly | `boolean` | `false` | - |
32
- | required | `boolean` | `false` | - |
33
- | value | `string` | `-` | - |
34
- | optional | `boolean` | `false` | - |
35
- | minHeight | `unknown` | `-` | - |
36
- | maxHeight | `unknown` | `-` | - |
37
- | validationMessage | `string` | `-` | - |
38
- | validity | `ValidityState` | `-` | - |
33
+ <elements-example>
39
34
 
40
- ### Property Details
35
+ ```html
36
+ <w-textarea label="Description"></w-textarea>
37
+ ```
41
38
 
42
- #### shadowRootOptions
39
+ </elements-example>
43
40
 
41
+ ### Placeholder
44
42
 
43
+ Text hint that appears when the textarea is empty. Placeholder text should not be used as a substitute for a visible label.
45
44
 
46
- - Type: `object`
47
- - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
45
+ <elements-example>
48
46
 
49
- #### disabled
47
+ ```html
48
+ <w-textarea
49
+ label="Description"
50
+ placeholder="Give as much detail as you can"
51
+ ></w-textarea>
52
+ ```
50
53
 
54
+ </elements-example>
51
55
 
56
+ ### Height
52
57
 
53
- - Type: `boolean`
54
- - Default: `false`
58
+ You can control the height of the input field by setting either `minimum-rows` or `maximum-rows`
55
59
 
56
- #### invalid
60
+ <elements-example>
61
+
62
+ ```html
63
+ <w-textarea label="Description" minimum-rows="3"></w-textarea>
64
+ ```
57
65
 
66
+ </elements-example>
58
67
 
68
+ With `maximum-rows` the content will start scrolling when it passes the limit. Note that the field stops being resizable. Setting `minimum-rows` is redundant when you set `maximum-rows`.
59
69
 
60
- - Type: `boolean`
61
- - Default: `false`
70
+ <elements-example>
62
71
 
63
- #### label
72
+ ```html
73
+ <w-textarea label="Description" maximum-rows="3" value="Line 1
74
+ Line 2
75
+ Line 3
76
+ Line 4
77
+ Line 5"></w-textarea>
78
+ ```
64
79
 
80
+ </elements-example>
65
81
 
82
+ ### Disabled
66
83
 
67
- - Type: `string`
68
- - Default: `-`
84
+ Consider using more informative alternatives before choosing to use disabled, as some users may not understand why an element is disabled.
69
85
 
70
- #### helpText
86
+ <elements-example>
71
87
 
88
+ ```html
89
+ <w-textarea
90
+ label="Description"
91
+ value="This form field is ignored"
92
+ disabled
93
+ ></w-textarea>
94
+ ```
72
95
 
96
+ </elements-example>
73
97
 
74
- - Type: `string`
75
- - Default: `-`
98
+ ### Read only
76
99
 
77
- #### maxRows
100
+ Makes the textarea content immutable while remaining focusable. The contents can still be copied.
78
101
 
102
+ <elements-example>
79
103
 
104
+ ```html
105
+ <w-textarea
106
+ label="Description"
107
+ value="This content is read only"
108
+ readonly
109
+ ></w-textarea>
110
+ ```
80
111
 
81
- - Type: `number`
82
- - Default: `-`
112
+ </elements-example>
83
113
 
84
- #### minRows
114
+ ## API Documentation
85
115
 
116
+ ### Properties
86
117
 
118
+ | Name | Type | Default | Summary |
119
+ |-|-|-|-|
120
+ | disabled | `boolean` | `false` | Makes the element not focusable and hides it from form submits |
121
+ | helpText | `string` | `-` | Description shown below the input field |
122
+ | invalid | `boolean` | `false` | Mark the form field as invalid. |
123
+ | label | `string` | `-` | Either a `label` or an `aria-label` must be provided. |
124
+ | maxRows | `number` | `-` | Sets the maximum number of text rows before the content starts scrolling. |
125
+ | minRows | `number` | `-` | Sets the minimum number of text rows the textarea should display |
126
+ | name | `string` | `-` | The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form |
127
+ | optional | `boolean` | `false` | Show an icon behind the label indicating the field is optional |
128
+ | placeholder | `string` | `-` | Shown in the textarea when it doesn't have a value |
129
+ | readOnly | `boolean` | `false` | **Deprecated**: Use the native `readonly` attribute instead |
130
+ | readonly | `boolean` | `false` | Whether the input can be selected but not changed by the user |
131
+ | required | `boolean` | `false` | Whether user input is required on the input before form submission |
132
+ | validationMessage | `string` | `-` | Returns the validation message if the textarea is invalid, otherwise an empty string |
133
+ | validity | `ValidityState` | `-` | Returns the validity state of the textarea |
134
+ | value | `string` | `-` | Lets you set the current value |
87
135
 
88
- - Type: `number`
89
- - Default: `-`
136
+ ### Property Details
90
137
 
91
- #### name
138
+ #### disabled
92
139
 
140
+ Keep in mind that using disabled in its current form is an anti-pattern.
93
141
 
142
+ There will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons.
94
143
 
95
- - Type: `string`
96
- - Default: `-`
144
+ Please consider more informative alternatives before choosing to use disabled on an element.
97
145
 
98
- #### placeholder
146
+ - Type: `boolean`
147
+ - Default: `false`
99
148
 
149
+ #### helpText
100
150
 
151
+ Use in combination with `invalid` to show as a validation error message,
152
+ or on its own to show a help text.
101
153
 
102
154
  - Type: `string`
103
155
  - Default: `-`
104
156
 
105
- #### readOnly
157
+ #### invalid
106
158
 
159
+ Mark the form field as invalid.
107
160
 
161
+ Make sure to also set a `help-text` to help users fix the validation problem.
108
162
 
109
163
  - Type: `boolean`
110
164
  - Default: `false`
111
165
 
112
- #### readonly
166
+ #### label
113
167
 
168
+ Either a `label` or an `aria-label` must be provided.
114
169
 
170
+ - Type: `string`
171
+ - Default: `-`
115
172
 
116
- - Type: `boolean`
117
- - Default: `false`
173
+ #### maxRows
118
174
 
119
- #### required
175
+ Sets the maximum number of text rows before the content starts scrolling.
120
176
 
177
+ - Type: `number`
178
+ - Default: `-`
121
179
 
180
+ #### minRows
122
181
 
123
- - Type: `boolean`
124
- - Default: `false`
182
+ Sets the minimum number of text rows the textarea should display
125
183
 
126
- #### value
184
+ - Type: `number`
185
+ - Default: `-`
127
186
 
187
+ #### name
128
188
 
189
+ The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form
129
190
 
130
191
  - Type: `string`
131
192
  - Default: `-`
132
193
 
133
194
  #### optional
134
195
 
135
-
196
+ Show an icon behind the label indicating the field is optional
136
197
 
137
198
  - Type: `boolean`
138
199
  - Default: `false`
139
200
 
140
- #### minHeight
201
+ #### placeholder
141
202
 
203
+ Set a text that is shown in the textarea when it doesn't have a value.
142
204
 
205
+ Placeholder text should not be used as a substitute for labeling the element with a visible label.
143
206
 
144
- - Type: `unknown`
207
+ - Type: `string`
145
208
  - Default: `-`
146
209
 
147
- #### maxHeight
210
+ #### readOnly
148
211
 
212
+ **Deprecated**: Use the native `readonly` attribute instead
149
213
 
150
214
 
151
- - Type: `unknown`
152
- - Default: `-`
215
+
216
+ - Type: `boolean`
217
+ - Default: `false`
218
+
219
+ #### readonly
220
+
221
+ Whether the input can be selected but not changed by the user
222
+
223
+ - Type: `boolean`
224
+ - Default: `false`
225
+
226
+ #### required
227
+
228
+ Whether user input is required on the input before form submission
229
+
230
+ - Type: `boolean`
231
+ - Default: `false`
153
232
 
154
233
  #### validationMessage
155
234
 
@@ -165,6 +244,13 @@ Returns the validity state of the textarea
165
244
  - Type: `ValidityState`
166
245
  - Default: `-`
167
246
 
247
+ #### value
248
+
249
+ Lets you set the current value
250
+
251
+ - Type: `string`
252
+ - Default: `-`
253
+
168
254
  ### Types
169
255
 
170
256
  No types documented.
@@ -1 +1,10 @@
1
1
  ## Usage
2
+
3
+ A multi-line text input with built-in form validation, auto-resizing, and styling support.
4
+
5
+ The component automatically handles:
6
+
7
+ - Form integration
8
+ - Auto-resizing based on content and row constraints
9
+ - Built-in validation with customizable error messages
10
+ - Accessibility attributes and labeling
@@ -1 +1,16 @@
1
1
  ## Accessibility
2
+
3
+ If a visible label isn't specified, an `aria-label` must be provided to the text field for accessibility. If the field is labeled by a separate element, an `aria-labelledby` property must be provided using the `id` of the labeling element instead.
4
+
5
+ - Always provide a visible label (do not rely on `placeholder` alone).
6
+ - Do not rely on color alone for interaction feedback (e.g. error states).
7
+ - Interaction patterns should follow platform-native expectations (e.g. tap zones, keyboard navigation, etc) and must not block accessibility tools.
8
+
9
+ ### When used with an affix
10
+
11
+ When `search` or `clear` set on the [affix](#with-affix) component it renders a button and a default `aria-label`. If the `aria-label` incorrect for your context, you may provide your own describing the action.
12
+
13
+ ```html
14
+ <w-affix search aria-label="Ad Search"></w-affix>
15
+ <w-affix clear aria-label="Clear text input"></w-affix>
16
+ ```
@@ -4,126 +4,154 @@
4
4
 
5
5
  | Name | Type | Default | Summary |
6
6
  |-|-|-|-|
7
- | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
8
- | disabled | `boolean` | `false` | - |
9
- | invalid | `boolean` | `false` | - |
10
- | id | `string` | `-` | - |
11
- | label | `string` | `-` | - |
12
- | helpText | `string` | `-` | - |
13
- | size | `string` | `-` | - |
14
- | max | `number` | `-` | - |
15
- | min | `number` | `-` | - |
16
- | minLength | `number` | `-` | - |
17
- | maxLength | `number` | `-` | - |
18
- | pattern | `string` | `-` | - |
19
- | placeholder | `string` | `-` | - |
20
- | readOnly | `boolean` | `false` | - |
21
- | readonly | `boolean` | `false` | - |
22
- | required | `boolean` | `false` | - |
23
- | type | `string` | `-` | - |
24
- | value | `string` | `-` | - |
25
- | name | `string` | `-` | - |
26
- | step | `number` | `-` | - |
27
- | autocomplete | `string | undefined` | `-` | - |
28
- | formatter | `(value: string) => string` | `-` | - |
29
- | _hasPrefix | `unknown` | `-` | - |
30
- | _hasSuffix | `unknown` | `-` | - |
7
+ | autocomplete | `string \| undefined` | `-` | A space-separated string that hints to browsers [what type of content it can suggest](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete#value) to autofill. |
8
+ | disabled | `boolean` | `false` | Makes the element not focusable and hides it from form submits |
9
+ | formatter | `(value: string) => string` | `-` | Function to format value when the input field |
10
+ | helpText | `string` | `-` | Description shown below the input field |
11
+ | invalid | `boolean` | `false` | Mark the form field as invalid. |
12
+ | label | `string` | `-` | Either a `label` or an `aria-label` must be provided. |
13
+ | max | `number` | `-` | Use with `type="number"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength). |
14
+ | maxLength | `number` | `-` | **Deprecated**: Use the native `maxlength` attribute |
15
+ | maxlength | `number` | `-` | For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [maximum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength) allowed. |
16
+ | min | `number` | `-` | Use with `type="number"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength). |
17
+ | minLength | `number` | `-` | **Deprecated**: Use the native `minlength` attribute |
18
+ | minlength | `number` | `-` | For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [minimum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength) required. |
19
+ | name | `string` | `-` | The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form. |
20
+ | pattern | `string` | `-` | Sets a [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) that the input's value must [match to pass validation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#pattern) |
21
+ | placeholder | `string` | `-` | Shown in the textfield when it doesn't have a value |
22
+ | readOnly | `boolean` | `false` | **Deprecated**: Use the native readonly attribute instead. |
23
+ | readonly | `boolean` | `false` | Whether the input can be selected but not changed by the user. |
24
+ | required | `boolean` | `false` | Whether user input is required on the input before form submission. |
25
+ | size | `string` | `-` | Sets the [size](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#size) (width) of the input field to fit the expected length of inputs. |
26
+ | step | `number` | `-` | Forces `number` inputs to be a whole number of `step` |
27
+ | type | `string` | `-` | The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types). |
28
+ | value | `string` | `-` | Lets you set the current value. |
31
29
 
32
30
  ### Property Details
33
31
 
34
- #### shadowRootOptions
35
-
32
+ #### autocomplete
36
33
 
34
+ A space-separated string that hints to browsers [what type of content it can suggest](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete#value) to autofill.
37
35
 
38
- - Type: `object`
39
- - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
36
+ - Type: `string \| undefined`
37
+ - Default: `-`
40
38
 
41
39
  #### disabled
42
40
 
41
+ Keep in mind that using disabled in its current form is an anti-pattern.
43
42
 
43
+ There will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons.
44
+
45
+ Please consider more informative alternatives before choosing to use disabled on an element.
44
46
 
45
47
  - Type: `boolean`
46
48
  - Default: `false`
47
49
 
48
- #### invalid
49
-
50
+ #### formatter
50
51
 
52
+ Function to format value when the input field.
51
53
 
52
- - Type: `boolean`
53
- - Default: `false`
54
+ Only active when the input field does not have focus,
55
+ similar to the accessible input [masking example from Filament Group](https://filamentgroup.github.io/politespace/demo/demo.html).
54
56
 
55
- #### id
57
+ - Type: `(value: string) => string`
58
+ - Default: `-`
56
59
 
60
+ #### helpText
57
61
 
62
+ Use in combination with `invalid` to show as a validation error message,
63
+ or on its own to show a help text.
58
64
 
59
65
  - Type: `string`
60
66
  - Default: `-`
61
67
 
62
- #### label
68
+ #### invalid
69
+
70
+ Mark the form field as invalid. Make sure to also set a `help-text` to help users fix the validation problem.
71
+
72
+ - Type: `boolean`
73
+ - Default: `false`
63
74
 
75
+ #### label
64
76
 
77
+ Either a `label` or an `aria-label` must be provided.
65
78
 
66
79
  - Type: `string`
67
80
  - Default: `-`
68
81
 
69
- #### helpText
70
-
82
+ #### max
71
83
 
84
+ Use with `type="number"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength).
72
85
 
73
- - Type: `string`
86
+ - Type: `number`
74
87
  - Default: `-`
75
88
 
76
- #### size
89
+ #### maxLength
77
90
 
91
+ **Deprecated**: Use the native `maxlength` attribute
78
92
 
79
93
 
80
- - Type: `string`
81
- - Default: `-`
82
94
 
83
- #### max
95
+ - Type: `number`
96
+ - Default: `-`
84
97
 
98
+ #### maxlength
85
99
 
100
+ For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [maximum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength) allowed.
86
101
 
87
102
  - Type: `number`
88
103
  - Default: `-`
89
104
 
90
105
  #### min
91
106
 
92
-
107
+ Use with `type="number"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength).
93
108
 
94
109
  - Type: `number`
95
110
  - Default: `-`
96
111
 
97
112
  #### minLength
98
113
 
114
+ **Deprecated**: Use the native `minlength` attribute
115
+
99
116
 
100
117
 
101
118
  - Type: `number`
102
119
  - Default: `-`
103
120
 
104
- #### maxLength
105
-
121
+ #### minlength
106
122
 
123
+ For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [minimum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength) required.
107
124
 
108
125
  - Type: `number`
109
126
  - Default: `-`
110
127
 
111
- #### pattern
128
+ #### name
112
129
 
130
+ The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form.
113
131
 
132
+ - Type: `string`
133
+ - Default: `-`
134
+
135
+ #### pattern
136
+
137
+ Sets a [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) that the input's value must [match to pass validation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#pattern)
114
138
 
115
139
  - Type: `string`
116
140
  - Default: `-`
117
141
 
118
142
  #### placeholder
119
143
 
144
+ Set a text that is shown in the textfield when it doesn't have a value.
120
145
 
146
+ Placeholder text should not be used as a substitute for labeling the element with a visible label.
121
147
 
122
148
  - Type: `string`
123
149
  - Default: `-`
124
150
 
125
151
  #### readOnly
126
152
 
153
+ **Deprecated**: Use the native readonly attribute instead.
154
+
127
155
 
128
156
 
129
157
  - Type: `boolean`
@@ -131,72 +159,47 @@
131
159
 
132
160
  #### readonly
133
161
 
134
-
162
+ Whether the input can be selected but not changed by the user.
135
163
 
136
164
  - Type: `boolean`
137
165
  - Default: `false`
138
166
 
139
167
  #### required
140
168
 
141
-
169
+ Whether user input is required on the input before form submission.
142
170
 
143
171
  - Type: `boolean`
144
172
  - Default: `false`
145
173
 
146
- #### type
147
-
148
-
149
-
150
- - Type: `string`
151
- - Default: `-`
152
-
153
- #### value
154
-
155
-
156
-
157
- - Type: `string`
158
- - Default: `-`
159
-
160
- #### name
161
-
174
+ #### size
162
175
 
176
+ Sets the [size](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#size) (width) of the input field to fit the expected length of inputs.
163
177
 
164
178
  - Type: `string`
165
179
  - Default: `-`
166
180
 
167
181
  #### step
168
182
 
183
+ When used with `number` this attribute forces inputs to be a whole number of `step`.
169
184
 
185
+ For example with a `step="5"` only values that divide evenly on 5 are allowed.
186
+ Using arrow up and down in the input field increments and decrements by 5.
170
187
 
171
188
  - Type: `number`
172
189
  - Default: `-`
173
190
 
174
- #### autocomplete
175
-
176
-
177
-
178
- - Type: `string | undefined`
179
- - Default: `-`
180
-
181
- #### formatter
182
-
183
-
184
-
185
- - Type: `(value: string) => string`
186
- - Default: `-`
187
-
188
- #### _hasPrefix
189
-
191
+ #### type
190
192
 
193
+ The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
191
194
 
192
- - Type: `unknown`
195
+ - Type: `string`
193
196
  - Default: `-`
194
197
 
195
- #### _hasSuffix
196
-
198
+ #### value
197
199
 
200
+ Lets you set the current value.
198
201
 
199
- - Type: `unknown`
202
+ - Type: `string`
200
203
  - Default: `-`
201
204
 
202
205
  ### Types