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?
optionalacceptedChildTypes?:string[]
Defined in: packages/react/src/reconciler/registry.ts:71
behaviors?
optionalbehaviors?: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?
optionalcomponent?:ModuleExport
Defined in: packages/react/src/reconciler/registry.ts:66
Component that wraps the generated element.
isLazy?
optionalisLazy?: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?
optionalomittedProps?: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?
optionalprops?:ElementPropsExport
Defined in: packages/react/src/reconciler/registry.ts:68
Base props interface the generated props extend.