@zohodesk/components
Version:
Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development
30 lines (28 loc) • 816 B
JavaScript
import React from 'react';
import { TabContent_defaultProps } from "./props/defaultProps";
import { TabContent_propTypes } from "./props/propTypes";
import { Container } from "../Layout";
import style from "./TabContent.module.css";
/* eslint-disable react/forbid-component-props */
const TabContent = _ref => {
let {
children,
scroll,
dataId,
id,
dataSelectorId
} = _ref;
return /*#__PURE__*/React.createElement(Container, {
className: style.container,
scroll: scroll,
dataId: `${dataId}_TabContent`,
isScrollAttribute: true,
"aria-labelledby": id,
tabindex: "-1",
role: "tabpanel",
dataSelectorId: dataSelectorId
}, children);
};
TabContent.defaultProps = TabContent_defaultProps;
TabContent.propTypes = TabContent_propTypes;
export default TabContent;