Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import * as cn from 'classnames'; import * as React from 'react'; import { Tab, TabProps as ISimpleTabProps } from 'react-tabs'; import { Classes } from '../classes'; const SimpleTab: React.FunctionComponent<ISimpleTabProps> & { tabsRole: string } = props => { const { children, ref, className, selectedClassName, disabledClassName, ...rest } = props; return React.createElement( Tab, { className: cn(Classes.SIMPLE_TAB, className), selectedClassName: cn(selectedClassName, 'selected-tab'), disabledClassName: cn(disabledClassName, 'disabled-tab'), ...rest, }, children, ); }; SimpleTab.tabsRole = 'Tab'; export { SimpleTab, ISimpleTabProps }; |