API / @xmachines/play-svelte / BaseComponentProps
Defined in: @xmachines/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 | - | - |
renderSlot? | Snippet<[string]> | Renders the children of one named slot of the element (element.slots): {@render renderSlot?.("header")}. Present only when the element fills at least one named slot. A slot renders only when the component calls it. | - |
slotNames? | string[] | The names of the named slots that the element fills, in spec order. | - |