reka-ui
Version:
Vue port for Radix UI Primitives.
17 lines (15 loc) • 472 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
Object.defineProperty(exports, 'isValidVNodeElement', {
enumerable: true,
get: function () {
return isValidVNodeElement;
}
});
//# sourceMappingURL=isValidVNodeElement.cjs.map