Skip to content

API Reference / @gtkx/react / config / ElementConfig

Type Alias: ElementConfig<T> ​

ElementConfig<T> = object

Defined in: packages/react/src/reconciler/registry.ts:60

How one GLib type is rendered.

Type Parameters ​

T ​

T extends GObject.Object = GObject.Object

Properties ​

acceptedChildTypes? ​

optional acceptedChildTypes?: string[]

Defined in: packages/react/src/reconciler/registry.ts:71


behaviors? ​

optional behaviors?: ElementBehavior<T>[]

Defined in: packages/react/src/reconciler/registry.ts:64

Behaviors bound to the type, consulted in registration order and inherited by its subtypes.


component? ​

optional component?: ModuleExport

Defined in: packages/react/src/reconciler/registry.ts:66

Component that wraps the generated element.


isLazy? ​

optional isLazy?: boolean

Defined in: packages/react/src/reconciler/registry.ts:62

The element has no GObject of its own; its parent container creates one, as it does for pages.


omittedProps? ​

optional omittedProps?: string[]

Defined in: packages/react/src/reconciler/registry.ts:70

GObject properties to leave out of the generated props, such as those a behavior writes from children.


props? ​

optional props?: ElementPropsExport

Defined in: packages/react/src/reconciler/registry.ts:68

Base props interface the generated props extend.