Skip to main content

LineHeight

type LineHeight = {
readonly value: number
readonly unit: "PIXELS" | "PERCENT"
} | {
readonly unit: "AUTO"
}

An object representing a number with a unit. This is similar to how you can set either 100% or 100px in a lot of CSS properties. It can also be set to AUTO.