@gravity-ui/uikit
Version:
Gravity UI base styling and components
13 lines (12 loc) • 547 B
JavaScript
'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import * as React from 'react';
import { TabContext } from "./contexts/TabContext.js";
import { useTabPanel } from "./hooks/useTabPanel.js";
import "./TabPanel.css";
export const TabPanel = React.forwardRef((props, ref) => {
const panelProps = useTabPanel(props);
return (_jsx(TabContext.Provider, { value: undefined, children: _jsx("div", { ref: ref, ...panelProps, children: props.children }) }));
});
TabPanel.displayName = 'TabPanel';
//# sourceMappingURL=TabPanel.js.map