isVueComponent
Since v0.3.1
Checks if a value is a Vue component (SFC or defineComponent result).
Vue components are identified by:
- Having
__name(SFC compiled marker) - Having
setupfunction (Composition API component) - Having
renderfunction (Options API component) - Being an ES6 class (class-based component)
Regular functions (ctx) => HTMLElement that are already processed
will not match these checks, making this idempotent.
isVueComponent(value: unknown): valueParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value | unknown |
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt