unit

open external val unit: String(source)

The unit read-only property of the CSSUnitValue interface returns a string indicating the unit type.

MDN Reference