UNPKG
reka-ui
Version:
latest (2.9.7)
2.9.7
2.9.6
2.9.5
2.9.4
2.9.3
2.9.2
2.9.1
2.9.0
2.8.2
2.8.0
2.7.0
2.6.2
2.6.1
2.6.0
2.5.1
2.5.0
2.4.1
2.4.0
2.3.2
2.3.1
2.3.0
2.2.1
2.2.0
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
1.0.0-alpha.11
1.0.0-alpha.10
1.0.0-alpha.9
1.0.0-alpha.8
1.0.0-alpha.7
1.0.0-alpha.6
1.0.0-alpha.5
1.0.0-alpha.4
1.0.0-alpha.3
1.0.0-alpha.2
1.0.0-alpha.1
0.0.2
0.0.0
Vue port for Radix UI Primitives.
github.com/unovue/reka-ui
unovue/reka-ui
reka-ui
/
src
/
shared
/
isValidVNodeElement.ts
12 lines
(11 loc)
•
277 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/** * Checks whether a given VNode
is
a render-vialble element. */ export function isValidVNodeElement(
input
:
any
): boolean {
return
(
input
&& (typeof
input
.
type
===
'string'
|| typeof
input
.
type
===
'object'
|| typeof
input
.
type
===
'function'
) ) }