UNPKG
react-tabs
Version:
latest (6.1.1)
release-4.x (4.3.0)
6.1.1
6.1.0
6.0.2
6.0.1
6.0.0
5.2.0
5.1.0
5.0.0
4.3.0
4.2.1
4.2.0
4.1.0
4.0.1
4.0.0
3.2.3
3.2.2
3.2.1
3.2.0
3.1.2
3.1.1
3.1.0
3.0.0
2.3.1
2.3.0
2.2.2
2.2.1
2.2.0
2.1.1
2.1.0
2.0.0
1.1.0
1.0.0
1.0.0-alpha.2
1.0.0-alpha.1
0.8.3
0.8.2
0.8.0
0.7.0
0.6.2
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
An accessible and easy tab component for ReactJS
github.com/reactjs/react-tabs
reactjs/react-tabs
react-tabs
/
esm
/
helpers
/
elementTypes.js
9 lines
•
251 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
export
function
isTab
(el)
{
return
el.
type
&& el.
type
.tabsRole ===
'Tab'
; } export
function
isTabPanel
(el)
{
return
el.
type
&& el.
type
.tabsRole ===
'TabPanel'
; } export
function
isTabList
(el)
{
return
el.
type
&& el.
type
.tabsRole ===
'TabList'
; }