Skip to content

SpaceValue

Extends BaseValue<string>

export type SpaceUnits = 'px' | 'em' | 'rem';
export type SpaceWithUnits = {
value: number;
units: SpaceUnits;
};
export type SpaceValueFormatOptions = {
quantize?: number;
};
export type SpaceValue = {
get: () => number;
raw: () => number;
quantized: (quantize?: number) => number;
toString: (options?: SpaceValueFormatOptions) => string;
toObject: (options?: SpaceValueFormatOptions) => SpaceWithUnits;
};