@warp-ds/elements 2.10.0-next.10 → 2.10.0-next.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/dist/custom-elements.json +211 -189
- package/dist/docs/badge/api.md +4 -4
- package/dist/docs/badge/badge.md +4 -4
- package/dist/docs/button/api.md +24 -24
- package/dist/docs/button/button.md +24 -24
- package/dist/docs/checkbox/api.md +2 -2
- package/dist/docs/checkbox/checkbox.md +2 -2
- package/dist/docs/checkbox-group/api.md +6 -6
- package/dist/docs/checkbox-group/checkbox-group.md +6 -6
- package/dist/docs/datepicker/api.md +8 -8
- package/dist/docs/datepicker/datepicker.md +8 -8
- package/dist/docs/expandable/api.md +6 -6
- package/dist/docs/expandable/expandable.md +6 -6
- package/dist/docs/icon/api.md +4 -4
- package/dist/docs/icon/icon.md +4 -4
- package/dist/docs/link/api.md +10 -10
- package/dist/docs/link/link.md +10 -10
- package/dist/docs/modal/api.md +2 -2
- package/dist/docs/modal/modal.md +2 -2
- package/dist/docs/pagination/api.md +4 -4
- package/dist/docs/pagination/pagination.md +4 -4
- package/dist/docs/pill/api.md +8 -8
- package/dist/docs/pill/pill.md +8 -8
- package/dist/docs/select/api.md +10 -10
- package/dist/docs/select/select.md +10 -10
- package/dist/docs/slider/api.md +22 -22
- package/dist/docs/slider/slider.md +22 -22
- package/dist/docs/slider-thumb/api.md +12 -12
- package/dist/docs/slider-thumb/slider-thumb.md +12 -12
- package/dist/docs/tabs/api.md +2 -2
- package/dist/docs/tabs/tabs.md +2 -2
- package/dist/docs/textarea/api.md +14 -14
- package/dist/docs/textarea/textarea.md +14 -14
- package/dist/docs/textfield/api.md +34 -34
- package/dist/docs/textfield/textfield.md +34 -34
- package/dist/index.d.ts +285 -26
- package/dist/packages/affix/affix.d.ts +1 -1
- package/dist/packages/affix/affix.js +1 -1
- package/dist/packages/affix/affix.js.map +4 -4
- package/dist/packages/affix/styles.js +2 -2
- package/dist/packages/alert/alert.js +3 -3
- package/dist/packages/alert/alert.js.map +3 -3
- package/dist/packages/alert/styles.js +2 -2
- package/dist/packages/attention/attention.js +2 -2
- package/dist/packages/attention/attention.js.map +4 -4
- package/dist/packages/attention/attention.stories.js +1 -1
- package/dist/packages/attention/styles.js +2 -2
- package/dist/packages/badge/badge.d.ts +2 -2
- package/dist/packages/badge/badge.js +1 -1
- package/dist/packages/badge/badge.js.map +3 -3
- package/dist/packages/badge/styles.js +2 -2
- package/dist/packages/box/box.js +2 -2
- package/dist/packages/box/box.js.map +3 -3
- package/dist/packages/box/styles.js +2 -2
- package/dist/packages/breadcrumbs/breadcrumbs.d.ts +1 -2
- package/dist/packages/breadcrumbs/breadcrumbs.js +3 -3
- package/dist/packages/breadcrumbs/breadcrumbs.js.map +4 -4
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +1 -1
- package/dist/packages/breadcrumbs/styles.js +2 -2
- package/dist/packages/button/button.d.ts +11 -11
- package/dist/packages/button/button.js +1 -1
- package/dist/packages/button/button.js.map +3 -3
- package/dist/packages/button/button.react.stories.d.ts +2 -2
- package/dist/packages/button/react.d.ts +1 -1
- package/dist/packages/card/card.js +2 -2
- package/dist/packages/card/card.js.map +4 -4
- package/dist/packages/card/styles.js +2 -2
- package/dist/packages/checkbox/checkbox.d.ts +2 -2
- package/dist/packages/checkbox/checkbox.js.map +2 -2
- package/dist/packages/checkbox-group/checkbox-group.d.ts +4 -4
- package/dist/packages/checkbox-group/checkbox-group.js.map +2 -2
- package/dist/packages/combobox/combobox.js +10 -11
- package/dist/packages/combobox/combobox.js.map +4 -4
- package/dist/packages/combobox/combobox.react.stories.d.ts +26 -10
- package/dist/packages/combobox/react.d.ts +13 -5
- package/dist/packages/combobox/styles.js +2 -3
- package/dist/packages/datepicker/datepicker.d.ts +5 -5
- package/dist/packages/datepicker/datepicker.js +12 -12
- package/dist/packages/datepicker/datepicker.js.map +3 -3
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +12 -12
- package/dist/packages/datepicker/react.d.ts +6 -6
- package/dist/packages/expandable/expandable.d.ts +3 -3
- package/dist/packages/expandable/expandable.js +11 -11
- package/dist/packages/expandable/expandable.js.map +3 -3
- package/dist/packages/expandable/styles.js +2 -2
- package/dist/packages/icon/icon.d.ts +1 -1
- package/dist/packages/icon/icon.js +2 -2
- package/dist/packages/icon/icon.js.map +1 -1
- package/dist/packages/icon/icon.react.stories.d.ts +1 -1
- package/dist/packages/icon/icon.react.stories.js +2 -0
- package/dist/packages/icon/icon.stories.d.ts +7 -30
- package/dist/packages/icon/icon.stories.js +11 -2
- package/dist/packages/link/link.d.ts +5 -5
- package/dist/packages/link/link.js.map +1 -1
- package/dist/packages/modal/modal.d.ts +1 -1
- package/dist/packages/modal/modal.js.map +2 -2
- package/dist/packages/modal/modal.react.stories.d.ts +4 -4
- package/dist/packages/modal/modal.react.stories.js +9 -1
- package/dist/packages/modal/react.d.ts +34 -4
- package/dist/packages/modal/react.js +30 -0
- package/dist/packages/modal/util.js +3 -1
- package/dist/packages/modal-footer/modal-footer.js.map +2 -2
- package/dist/packages/modal-header/modal-header.js +4 -4
- package/dist/packages/modal-header/modal-header.js.map +3 -3
- package/dist/packages/modal-header/react.d.ts +2 -2
- package/dist/packages/page-indicator/page-indicator.d.ts +0 -4
- package/dist/packages/page-indicator/page-indicator.js +6 -6
- package/dist/packages/page-indicator/page-indicator.js.map +4 -4
- package/dist/packages/page-indicator/page-indicator.stories.d.ts +8 -26
- package/dist/packages/page-indicator/page-indicator.stories.js +9 -7
- package/dist/packages/pagination/pagination.d.ts +8 -9
- package/dist/packages/pagination/pagination.js +11 -11
- package/dist/packages/pagination/pagination.js.map +4 -4
- package/dist/packages/pagination/pagination.react.stories.d.ts +6 -6
- package/dist/packages/pagination/pagination.test.js +4 -7
- package/dist/packages/pagination/react.d.ts +3 -3
- package/dist/packages/pagination/styles.js +2 -2
- package/dist/packages/pill/pill.d.ts +4 -4
- package/dist/packages/pill/pill.js +3 -3
- package/dist/packages/pill/pill.js.map +4 -4
- package/dist/packages/pill/pill.react.stories.d.ts +8 -8
- package/dist/packages/pill/react.d.ts +4 -4
- package/dist/packages/pill/styles.js +2 -2
- package/dist/packages/radio/form-associated-element.d.ts +1 -1
- package/dist/packages/radio/radio.d.ts +1 -1
- package/dist/packages/radio-group/radio-group.d.ts +2 -2
- package/dist/packages/radio-group/radio-group.js.map +1 -1
- package/dist/packages/radio-group/react.d.ts +4 -4
- package/dist/packages/select/react.d.ts +3 -3
- package/dist/packages/select/select.d.ts +6 -7
- package/dist/packages/select/select.js +5 -5
- package/dist/packages/select/select.js.map +4 -4
- package/dist/packages/select/select.react.stories.d.ts +7 -7
- package/dist/packages/select/select.react.stories.js +15 -10
- package/dist/packages/select/styles.js +2 -2
- package/dist/packages/slider/slider.d.ts +14 -14
- package/dist/packages/slider/slider.js +6 -6
- package/dist/packages/slider/slider.js.map +3 -3
- package/dist/packages/slider/slider.stories.js +1 -0
- package/dist/packages/slider-thumb/react.d.ts +2 -2
- package/dist/packages/slider-thumb/slider-thumb.d.ts +14 -14
- package/dist/packages/slider-thumb/slider-thumb.js +2 -2
- package/dist/packages/slider-thumb/slider-thumb.js.map +3 -3
- package/dist/packages/slider-thumb/styles.d.ts +1 -0
- package/dist/packages/slider-thumb/styles.js +2 -0
- package/dist/packages/step/step.js +3 -3
- package/dist/packages/step/step.js.map +4 -4
- package/dist/packages/step-indicator/step-indicator.js +3 -3
- package/dist/packages/step-indicator/step-indicator.js.map +3 -3
- package/dist/packages/step-indicator/styles.js +2 -2
- package/dist/packages/switch/styles.js +2 -2
- package/dist/packages/switch/switch.d.ts +3 -3
- package/dist/packages/switch/switch.js +3 -3
- package/dist/packages/switch/switch.js.map +3 -3
- package/dist/packages/tab/react.d.ts +4 -4
- package/dist/packages/tab/tab.d.ts +1 -1
- package/dist/packages/tab/tab.js +4 -4
- package/dist/packages/tab/tab.js.map +3 -3
- package/dist/packages/tab-panel/tab-panel.js +1 -1
- package/dist/packages/tab-panel/tab-panel.js.map +3 -3
- package/dist/packages/tabs/styles.js +2 -2
- package/dist/packages/tabs/tabs.d.ts +4 -3
- package/dist/packages/tabs/tabs.js +1 -1
- package/dist/packages/tabs/tabs.js.map +3 -3
- package/dist/packages/textarea/react.d.ts +9 -9
- package/dist/packages/textarea/styles.js +2 -2
- package/dist/packages/textarea/textarea.a11y.test.js +1 -1
- package/dist/packages/textarea/textarea.d.ts +10 -10
- package/dist/packages/textarea/textarea.js +6 -6
- package/dist/packages/textarea/textarea.js.map +4 -4
- package/dist/packages/textarea/textarea.react.stories.d.ts +18 -18
- package/dist/packages/textfield/react.d.ts +9 -9
- package/dist/packages/textfield/styles.js +2 -2
- package/dist/packages/textfield/textfield.d.ts +22 -22
- package/dist/packages/textfield/textfield.js +4 -4
- package/dist/packages/textfield/textfield.js.map +3 -3
- package/dist/packages/textfield/textfield.react.stories.d.ts +18 -18
- package/dist/packages/toast/api.d.ts +1 -1
- package/dist/packages/toast/toast.d.ts +1 -1
- package/dist/packages/toast/toast.js +3 -3
- package/dist/packages/toast/toast.js.map +3 -3
- package/dist/packages/toast-container/styles.d.ts +1 -0
- package/dist/packages/toast-container/styles.js +2 -0
- package/dist/packages/toast-container/toast-container.js +2 -2
- package/dist/packages/toast-container/toast-container.js.map +2 -2
- package/dist/web-types.json +170 -159
- package/eik/index.js +21 -22
- package/package.json +4 -4
|
@@ -191,28 +191,28 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
191
191
|
|
|
192
192
|
| Name | Type | Default | Summary |
|
|
193
193
|
|-|-|-|-|
|
|
194
|
-
| autocomplete | `
|
|
194
|
+
| autocomplete | `HTMLInputElement["autocomplete"] \| 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. |
|
|
195
195
|
| disabled | `boolean` | `false` | Makes the element not focusable and hides it from form submits |
|
|
196
|
-
| formatter (JS only) | `(value: string) => string` | `-` | Function to format value when the input field |
|
|
197
|
-
| help-text | `string` | `-` | Description shown below the input field |
|
|
196
|
+
| formatter (JS only) | `((value: string) => string) \| undefined` | `-` | Function to format value when the input field |
|
|
197
|
+
| help-text | `string \| undefined` | `-` | Description shown below the input field |
|
|
198
198
|
| invalid | `boolean` | `false` | Mark the form field as invalid. |
|
|
199
|
-
| label | `string` | `-` | Either a `label` or an `aria-label` must be provided. |
|
|
200
|
-
| 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). |
|
|
201
|
-
| max-length | `number` | `-` | **Deprecated**: Use the native `maxlength` attribute |
|
|
202
|
-
| 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. |
|
|
203
|
-
| 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). |
|
|
204
|
-
| min-length | `number` | `-` | **Deprecated**: Use the native `minlength` attribute |
|
|
205
|
-
| 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. |
|
|
206
|
-
| 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. |
|
|
207
|
-
| 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) |
|
|
208
|
-
| placeholder | `string` | `-` | Shown in the textfield when it doesn't have a value |
|
|
199
|
+
| label | `string \| undefined` | `-` | Either a `label` or an `aria-label` must be provided. |
|
|
200
|
+
| max | `number \| undefined` | `-` | Use with `type="number"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength). |
|
|
201
|
+
| max-length | `number \| undefined` | `-` | **Deprecated**: Use the native `maxlength` attribute |
|
|
202
|
+
| maxlength | `number \| undefined` | `-` | 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. |
|
|
203
|
+
| min | `number \| undefined` | `-` | Use with `type="number"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength). |
|
|
204
|
+
| min-length | `number \| undefined` | `-` | **Deprecated**: Use the native `minlength` attribute |
|
|
205
|
+
| minlength | `number \| undefined` | `-` | 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. |
|
|
206
|
+
| name | `string \| undefined` | `-` | The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form. |
|
|
207
|
+
| pattern | `string \| undefined` | `-` | 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) |
|
|
208
|
+
| placeholder | `string \| undefined` | `-` | Shown in the textfield when it doesn't have a value |
|
|
209
209
|
| read-only | `boolean` | `false` | **Deprecated**: Use the native readonly attribute instead. |
|
|
210
210
|
| readonly | `boolean` | `false` | Whether the input can be selected but not changed by the user. |
|
|
211
211
|
| required | `boolean` | `false` | Whether user input is required on the input before form submission. |
|
|
212
|
-
| 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. |
|
|
213
|
-
| step | `number` | `-` | Forces `number` inputs to be a whole number of `step` |
|
|
214
|
-
| type | `string` | `-` | The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types). |
|
|
215
|
-
| value | `string` | `-` | Lets you set the current value. |
|
|
212
|
+
| size | `string \| undefined` | `-` | 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. |
|
|
213
|
+
| step | `number \| undefined` | `-` | Forces `number` inputs to be a whole number of `step` |
|
|
214
|
+
| type | `string \| undefined` | `-` | The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types). |
|
|
215
|
+
| value | `string \| undefined` | `-` | Lets you set the current value. |
|
|
216
216
|
|
|
217
217
|
### Property Details
|
|
218
218
|
|
|
@@ -220,7 +220,7 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
220
220
|
|
|
221
221
|
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.
|
|
222
222
|
|
|
223
|
-
- Type: `
|
|
223
|
+
- Type: `HTMLInputElement["autocomplete"] | undefined`
|
|
224
224
|
- Default: `-`
|
|
225
225
|
|
|
226
226
|
#### disabled
|
|
@@ -241,7 +241,7 @@ Function to format value when the input field.
|
|
|
241
241
|
Only active when the input field does not have focus,
|
|
242
242
|
similar to the accessible input [masking example from Filament Group](https://filamentgroup.github.io/politespace/demo/demo.html).
|
|
243
243
|
|
|
244
|
-
- Type: `(value: string) => string`
|
|
244
|
+
- Type: `((value: string) => string) | undefined`
|
|
245
245
|
- Default: `-`
|
|
246
246
|
|
|
247
247
|
#### help-text
|
|
@@ -249,7 +249,7 @@ similar to the accessible input [masking example from Filament Group](https://fi
|
|
|
249
249
|
Use in combination with `invalid` to show as a validation error message,
|
|
250
250
|
or on its own to show a help text.
|
|
251
251
|
|
|
252
|
-
- Type: `string`
|
|
252
|
+
- Type: `string | undefined`
|
|
253
253
|
- Default: `-`
|
|
254
254
|
|
|
255
255
|
#### invalid
|
|
@@ -263,14 +263,14 @@ Mark the form field as invalid. Make sure to also set a `help-text` to help user
|
|
|
263
263
|
|
|
264
264
|
Either a `label` or an `aria-label` must be provided.
|
|
265
265
|
|
|
266
|
-
- Type: `string`
|
|
266
|
+
- Type: `string | undefined`
|
|
267
267
|
- Default: `-`
|
|
268
268
|
|
|
269
269
|
#### max
|
|
270
270
|
|
|
271
271
|
Use with `type="number"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength).
|
|
272
272
|
|
|
273
|
-
- Type: `number`
|
|
273
|
+
- Type: `number | undefined`
|
|
274
274
|
- Default: `-`
|
|
275
275
|
|
|
276
276
|
#### max-length
|
|
@@ -279,21 +279,21 @@ Use with `type="number"` to set the [maximum allowed value](https://developer.mo
|
|
|
279
279
|
|
|
280
280
|
|
|
281
281
|
|
|
282
|
-
- Type: `number`
|
|
282
|
+
- Type: `number | undefined`
|
|
283
283
|
- Default: `-`
|
|
284
284
|
|
|
285
285
|
#### maxlength
|
|
286
286
|
|
|
287
287
|
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.
|
|
288
288
|
|
|
289
|
-
- Type: `number`
|
|
289
|
+
- Type: `number | undefined`
|
|
290
290
|
- Default: `-`
|
|
291
291
|
|
|
292
292
|
#### min
|
|
293
293
|
|
|
294
294
|
Use with `type="number"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength).
|
|
295
295
|
|
|
296
|
-
- Type: `number`
|
|
296
|
+
- Type: `number | undefined`
|
|
297
297
|
- Default: `-`
|
|
298
298
|
|
|
299
299
|
#### min-length
|
|
@@ -302,28 +302,28 @@ Use with `type="number"` to set the [minimum allowed value](https://developer.mo
|
|
|
302
302
|
|
|
303
303
|
|
|
304
304
|
|
|
305
|
-
- Type: `number`
|
|
305
|
+
- Type: `number | undefined`
|
|
306
306
|
- Default: `-`
|
|
307
307
|
|
|
308
308
|
#### minlength
|
|
309
309
|
|
|
310
310
|
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.
|
|
311
311
|
|
|
312
|
-
- Type: `number`
|
|
312
|
+
- Type: `number | undefined`
|
|
313
313
|
- Default: `-`
|
|
314
314
|
|
|
315
315
|
#### name
|
|
316
316
|
|
|
317
317
|
The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form.
|
|
318
318
|
|
|
319
|
-
- Type: `string`
|
|
319
|
+
- Type: `string | undefined`
|
|
320
320
|
- Default: `-`
|
|
321
321
|
|
|
322
322
|
#### pattern
|
|
323
323
|
|
|
324
324
|
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)
|
|
325
325
|
|
|
326
|
-
- Type: `string`
|
|
326
|
+
- Type: `string | undefined`
|
|
327
327
|
- Default: `-`
|
|
328
328
|
|
|
329
329
|
#### placeholder
|
|
@@ -332,7 +332,7 @@ Set a text that is shown in the textfield when it doesn't have a value.
|
|
|
332
332
|
|
|
333
333
|
Placeholder text should not be used as a substitute for labeling the element with a visible label.
|
|
334
334
|
|
|
335
|
-
- Type: `string`
|
|
335
|
+
- Type: `string | undefined`
|
|
336
336
|
- Default: `-`
|
|
337
337
|
|
|
338
338
|
#### read-only
|
|
@@ -362,7 +362,7 @@ Whether user input is required on the input before form submission.
|
|
|
362
362
|
|
|
363
363
|
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.
|
|
364
364
|
|
|
365
|
-
- Type: `string`
|
|
365
|
+
- Type: `string | undefined`
|
|
366
366
|
- Default: `-`
|
|
367
367
|
|
|
368
368
|
#### step
|
|
@@ -372,20 +372,20 @@ When used with `number` this attribute forces inputs to be a whole number of `st
|
|
|
372
372
|
For example with a `step="5"` only values that divide evenly on 5 are allowed.
|
|
373
373
|
Using arrow up and down in the input field increments and decrements by 5.
|
|
374
374
|
|
|
375
|
-
- Type: `number`
|
|
375
|
+
- Type: `number | undefined`
|
|
376
376
|
- Default: `-`
|
|
377
377
|
|
|
378
378
|
#### type
|
|
379
379
|
|
|
380
380
|
The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
|
|
381
381
|
|
|
382
|
-
- Type: `string`
|
|
382
|
+
- Type: `string | undefined`
|
|
383
383
|
- Default: `-`
|
|
384
384
|
|
|
385
385
|
#### value
|
|
386
386
|
|
|
387
387
|
Lets you set the current value.
|
|
388
388
|
|
|
389
|
-
- Type: `string`
|
|
389
|
+
- Type: `string | undefined`
|
|
390
390
|
- Default: `-`
|
|
391
391
|
|