Skip to content

Documentation / @ripl/core / ElementDefaults

Type Alias: ElementDefaults<TState> ​

ElementDefaults<TState> = Partial<Omit<ElementOptions<TState>, "id" | "class" | "data">>

Defined in: packages/core/src/core/element.ts:254

Class-level defaults, applied beneath the options a caller passes.

Mirrors ElementOptions so a layer writes its defaults exactly as a caller writes options, minus the identity properties, which mean nothing per class. Precedence runs built-in defaults, then these, then the caller's options.

Type Parameters ​

Type ParameterDefault type
TState extends BaseElementStateBaseElementState