

Every state


default


focus


filled


pounds


unit-focus


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "parcel-weight" | Input id. |
| name | string | "weight" | Form field name of the number. |
| unitName | string | "weightUnit" | Form field name of the unit select. |
| label | string | "Parcel weight" | Visible label. |
| description | string | – | Help text under the field. |
| placeholder | string | "e.g. 2.5" | Placeholder inside the field. |
| defaultValue | string | – | Starting number. |
| defaultUnit | "kg" | "lb" | "kg" | Starting unit; switching converts the number, rounded to one decimal. |
| min | number | 0.1 | Lowest allowed weight, in kg. |
| max | number | 30 | Highest allowed weight, in kg. |
| required | boolean | – | Marks the field required (asterisk and the required attribute). |
| error | string | – | Error message; makes the field invalid and links the message to it. |
| disabled | boolean | – | Disables the field. |
| className | string | – | Extra classes on the outer Field. |
More input groups
All 14input-group-13 is in UI ProGet UI Pro, €199


