You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
import PropTypes from 'prop-types';
|
|
import * as React from 'react';
|
|
import TabContainer from './TabContainer';
|
|
import TabContent from './TabContent';
|
|
import TabPane from './TabPane';
|
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
|
/* eslint-disable react/no-unused-prop-types */
|
|
const propTypes = {
|
|
eventKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
|
|
/**
|
|
* Content for the tab title.
|
|
*/
|
|
title: PropTypes.node.isRequired,
|
|
|
|
/**
|
|
* The disabled state of the tab.
|
|
*/
|
|
disabled: PropTypes.bool,
|
|
|
|
/**
|
|
* Class to pass to the underlying nav link.
|
|
*/
|
|
tabClassName: PropTypes.string,
|
|
|
|
/**
|
|
* Object containing attributes to pass to underlying nav link.
|
|
*/
|
|
tabAttrs: PropTypes.object
|
|
};
|
|
|
|
const Tab = () => {
|
|
throw new Error('ReactBootstrap: The `Tab` component is not meant to be rendered! ' + "It's an abstract component that is only valid as a direct Child of the `Tabs` Component. " + 'For custom tabs components use TabPane and TabsContainer directly'); // Needed otherwise docs error out.
|
|
|
|
return /*#__PURE__*/_jsx(_Fragment, {});
|
|
};
|
|
|
|
Tab.propTypes = propTypes;
|
|
export default Object.assign(Tab, {
|
|
Container: TabContainer,
|
|
Content: TabContent,
|
|
Pane: TabPane
|
|
}); |