Documentation / @ripl/vue / RiplComponent
Interface: RiplComponent<TProps, TExposed> ​
Defined in: adapters/vue/src/types.ts:139
A declarative component wrapping a Ripl object.
Typed through $props rather than DefineComponent so that editors and vue-tsc resolve each element's own state properties, which the runtime prop declarations deliberately leave untyped.
The instance type is the wrapped Ripl object itself, because a template ref on any of these components resolves to that object rather than to Vue's component proxy.
Type Parameters ​
| Type Parameter | Default type | Description |
|---|---|---|
TProps | - | The component's prop surface. |
TExposed | unknown | The Ripl object a template ref on the component resolves to. |