Skip to content

API Reference / @gtkx/codegen / BuiltinElements

Type Alias: BuiltinElements

BuiltinElements = object

Defined in: codegen/dist/react/element-config.d.ts:4

The framework's built-in element config, split into the maps codegen consumes.

Properties

components

components: Record<string, ModuleExport>

Defined in: codegen/dist/react/element-config.d.ts:6

Component wrappers keyed by GLib type name; an element without one inherits its nearest ancestor's.


lazyElements

lazyElements: string[]

Defined in: codegen/dist/react/element-config.d.ts:8

GLib type names with no GObject of their own, exported as elements that drop their construct-only props.


omittedProps

omittedProps: OmittedProps

Defined in: codegen/dist/react/element-config.d.ts:12

Props left out of the generated element props, keyed by GLib type name.


props

props: Record<string, ModuleExport>

Defined in: codegen/dist/react/element-config.d.ts:10

Base props interfaces the generated element props extend, keyed by GLib type name.

Released under the MPL-2.0 License.