Overview > NumberInputOptions > unit

NumberInputOptions.unit property

A unit identifier, which is required when using NumberFormatStyle.Unit. Pairs of simple units can be concatenated with "-per-" to make a compound unit.

Signature:

unit?: string;

Example

"byte" (simple unit) or "byte-per-second" (compound unit).