Skip to content

@jimka/typescript-ui / core / ComponentOptions

Interface: ComponentOptions

Defined in: src/typescript/lib/core/Component.ts:74

Construction-time options for Component.

Every field is optional and maps to an existing setter on Component. Pass an options object as the trailing constructor argument to configure a component declaratively instead of issuing chained setter calls.

Extended by

Properties

attributes?

ts
optional attributes: Record<string, string>;

Defined in: src/typescript/lib/core/Component.ts:102


backgroundColor?

ts
optional backgroundColor: string;

Defined in: src/typescript/lib/core/Component.ts:81


backgroundImage?

ts
optional backgroundImage: string;

Defined in: src/typescript/lib/core/Component.ts:82


border?

ts
optional border: string | BorderOptions;

Defined in: src/typescript/lib/core/Component.ts:85


borderRadius?

ts
optional borderRadius: string;

Defined in: src/typescript/lib/core/Component.ts:86


colorScheme?

ts
optional colorScheme: string;

Defined in: src/typescript/lib/core/Component.ts:84


components?

ts
optional components: (
  | Component<ComponentOptions>
  | ConstrainedComponent)[];

Defined in: src/typescript/lib/core/Component.ts:103


cursor?

ts
optional cursor: string;

Defined in: src/typescript/lib/core/Component.ts:89


display?

ts
optional display: string;

Defined in: src/typescript/lib/core/Component.ts:97


displayed?

ts
optional displayed: boolean;

Defined in: src/typescript/lib/core/Component.ts:77


foregroundColor?

ts
optional foregroundColor: string;

Defined in: src/typescript/lib/core/Component.ts:83


id?

ts
optional id: string;

Defined in: src/typescript/lib/core/Component.ts:101


insets?

ts
optional insets: Insets;

Defined in: src/typescript/lib/core/Component.ts:79


layoutManager?

ts
optional layoutManager: LayoutManager;

Defined in: src/typescript/lib/core/Component.ts:100


maxSize?

ts
optional maxSize: Size;

Defined in: src/typescript/lib/core/Component.ts:92


minSize?

ts
optional minSize: Size;

Defined in: src/typescript/lib/core/Component.ts:91


opacity?

ts
optional opacity: number;

Defined in: src/typescript/lib/core/Component.ts:95


outline?

ts
optional outline: string;

Defined in: src/typescript/lib/core/Component.ts:88


overflow?

ts
optional overflow: string;

Defined in: src/typescript/lib/core/Component.ts:98


padding?

ts
optional padding: Insets;

Defined in: src/typescript/lib/core/Component.ts:80


pointerEvents?

ts
optional pointerEvents: string;

Defined in: src/typescript/lib/core/Component.ts:99


position?

ts
optional position: Position;

Defined in: src/typescript/lib/core/Component.ts:96


preferredSize?

ts
optional preferredSize: Size;

Defined in: src/typescript/lib/core/Component.ts:90


shadow?

ts
optional shadow: string;

Defined in: src/typescript/lib/core/Component.ts:87


tag?

ts
optional tag: string;

Defined in: src/typescript/lib/core/Component.ts:75


transform?

ts
optional transform: string;

Defined in: src/typescript/lib/core/Component.ts:93


visible?

ts
optional visible: boolean;

Defined in: src/typescript/lib/core/Component.ts:76


willChange?

ts
optional willChange: null | string;

Defined in: src/typescript/lib/core/Component.ts:94


zIndex?

ts
optional zIndex: number;

Defined in: src/typescript/lib/core/Component.ts:78