File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ render(<App />, document.getElementById('root'));
83
83
| onChange | Function | onChange callback | undefined |
84
84
| selectedTabKey | Number/String | Selected tab | undefined |
85
85
| showMore | Bool | Whether to show ` Show more ` or not | ` true ` |
86
- | showMoreLabel | String | ` Show more ` tab name | ` ... ` |
86
+ | showMoreLabel | String/Node | ` Show more ` tab name | ` ... ` |
87
87
| transform | Bool | Transform to accordion when the wrapper width is less than ` transformWidth ` . | ` true ` |
88
88
| transformWidth | Number | Transform width. | 800 |
89
89
| tabsWrapperClass | String | Wrapper class | undefined |
Original file line number Diff line number Diff line change @@ -115,7 +115,10 @@ ShowMore.propTypes = {
115
115
hasChildSelected : PropTypes . bool ,
116
116
isShown : PropTypes . bool . isRequired ,
117
117
onShowMoreChanged : PropTypes . func ,
118
- label : PropTypes . string
118
+ label : PropTypes . oneOfType ( [
119
+ PropTypes . string ,
120
+ PropTypes . node ,
121
+ ] ) ,
119
122
} ;
120
123
121
124
ShowMore . defaultProps = {
Original file line number Diff line number Diff line change @@ -374,7 +374,10 @@ Tabs.propTypes = {
374
374
tabClass : PropTypes . string ,
375
375
panelClass : PropTypes . string ,
376
376
// labels
377
- showMoreLabel : PropTypes . string
377
+ showMoreLabel : PropTypes . oneOfType ( [
378
+ PropTypes . string ,
379
+ PropTypes . node ,
380
+ ] ) ,
378
381
} ;
379
382
380
383
Tabs . defaultProps = {
You can’t perform that action at this time.
0 commit comments