Skip to main content

space

Decorator that adds vertical spacing in the inspector UI.

TypeNameInterface Description
Functionsspace(heightPixels: number): (target: any, key: string) => any

Function: Decorator that adds vertical spacing in the inspector UI. Useful for creating visual breathing room between property groups.

Parameters

heightPixels: - The height of the space in pixels

Returns Property decorator function

Example

@component()
export class ComplexComponent extends APJS.BasicScriptComponent {
@serializeProperty()
public enabled: boolean = true;

@space(20)

@serializeProperty()
public advancedMode: boolean = false;

@space(10)

@serializeProperty()
public debugMode: boolean = false;
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies