rc-adminlte
Version:
AdminLTE template ported to React
20 lines (16 loc) • 446 B
JSX
import React from 'react';
import { TabPane } from 'react-bootstrap';
import PropTypes from 'prop-types';
const TabContent = ({ eventKey, children }) => (
<TabPane eventKey={eventKey}>
{children}
</TabPane>
);
TabContent.propTypes = {
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
]).isRequired,
eventKey: PropTypes.string.isRequired,
};
export default TabContent;