Input
Text, number, currency and date field with label and validation.
Use an input for free text, numbers, amounts and dates.
Currency
type="currency" renders a right-aligned number input with step 0.01. On commit, it rounds the value to 2 decimals.
Date
type="date" shows a text field in the locale's date format and a calendar button. The button opens a calendar below the field. value is always ISO YYYY-MM-DD, in events, in form data and for NetSuite.
- Type a date in the locale format (
12/24/2026in en-US) or as ISO (2026-12-24). On blur, the field shows it in the locale format. - Text that is not a date shows the error style and blocks form submission.
- Days before
minand aftermaxare struck through and cannot be picked. localesets the format, the month and weekday names and the first day of the week. Without it, the browser locale applies.
Calendar keys:
| Key | Action |
|---|---|
| Alt+ArrowDown (in the field) | Open the calendar |
| Arrow keys | Move by day or week |
| PageUp / PageDown | Move by month. With Shift, by year. |
| Home / End | First or last day of the week |
| Enter / Space | Pick the day |
| Escape | Close and return to the field |
Stepper
Set stepper on a number or currency input to show − and + buttons beside the field. Each click adds or subtracts step (1 for numbers, 0.01 for currency). The value stays within min and max, and a button is disabled at its limit. Hold a button to repeat. ArrowUp and ArrowDown in the field step the same way.
The buttons are not in the Tab order, because the field already steps with the arrow keys. Each step fires input and change, updates the form value and, with field, writes to the record, the same as typing. Number and currency inputs never show the browser's spin arrows, with or without stepper.
Hint and error
hint shows help text. error shows an error message, marks the field invalid and blocks form submission.
States
In NetSuite
Set field to bind the input to a native body field.
<nsui-input field="trandate"></nsui-input>The label, input type, mandatory and disabled state come from the record. Each committed change writes back with setValue. Attributes you set yourself, such as label or type, win.
API
Attributes
Prop
Type
Events
Prop
Type
CSS parts
Prop
Type
CSS custom properties
Prop
Type
Field group
Read-only label and value pairs in a band, under a small heading.
Meter
Small ring that shows how much of a limit is used.
NSUI is a community project. It is not an official Oracle NetSuite product. NetSuite is a trademark of Oracle.