

Every state


default


focus


button-focus


loading


success


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "discount-code" | Input id; label, description and result point at it. |
| name | string | "discountCode" | Form field name. |
| label | string | "Discount code" | Visible label. |
| description | string | – | Help text under the field. |
| placeholder | string | – | Placeholder inside the field. |
| defaultValue | string | – | Starting value. |
| actionLabel | string | "Apply" | Button text. |
| pendingLabel | string | "Applying" | Button text while the action runs. |
| onAction | (value: string) => Promise<{ ok: boolean; message: string }> | – | Runs on the button or Enter; the result line shows its message. The default accepts SPRING10 after a short wait. |
| pending | boolean | – | Start in the running state. |
| result | { ok: boolean; message: string } | – | Start with a result line shown. |
| disabled | boolean | – | Disables the field and button. |
| className | string | – | Extra classes on the outer Field. |
More input groups
All 14input-group-01 is in UI ProGet UI Pro, €199


