UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

15 lines (14 loc) 670 B
'use client'; import { jsx as _jsx } from "react/jsx-runtime"; import * as React from 'react'; import { useDefaultProps } from "../theme/useDefaultProps.js"; import { TabContext } from "./contexts/TabContext.js"; import { useTabPanel } from "./hooks/useTabPanel.js"; import "./TabPanel.css"; export const TabPanel = React.forwardRef((rawProps, ref) => { const props = useDefaultProps('TabPanel', rawProps); 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