reka-ui
Version:
Vue port for Radix UI Primitives.
11 lines (10 loc) • 365 B
JavaScript
//#region src/shared/isValidVNodeElement.ts
/**
* Checks whether a given VNode is a render-vialble element.
*/
function isValidVNodeElement(input) {
return input && (typeof input.type === "string" || typeof input.type === "object" || typeof input.type === "function");
}
//#endregion
export { isValidVNodeElement };
//# sourceMappingURL=isValidVNodeElement.js.map