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 Parameter | Default type |
|---|
P | Record<string, unknown> |
Properties
| Property | Type | Description | Defined 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) => void | Simple event emitter (shorthand). Fires the event and returns void. | - |
loading? | boolean | - | - |
on | (event) => EventHandle | Get an event handle with metadata. Use when you need shouldPreventDefault or bound checks. | - |
props | P | - | - |