Skip to content

Interface: BaseComponentProps<P>

API / @xmachines/play-svelte / BaseComponentProps

Defined in: @json-render/svelte

Catalog-agnostic base type for component render function arguments. Use this when building reusable component libraries.

Extended by

Type Parameters

Type ParameterDefault type
PRecord<string, unknown>

Properties

PropertyTypeDescriptionDefined in
bindings?Record<string, string>Two-way binding paths resolved from $bindState / $bindItem expressions. Maps prop name → absolute state path for write-back.-
children?Snippet<[]>--
emit(event) => voidSimple event emitter (shorthand). Fires the event and returns void.-
loading?boolean--
on(event) => EventHandleGet an event handle with metadata. Use when you need shouldPreventDefault or bound checks.-
propsP--