import { forwardRef } from '@wordpress/element'; import { Tabs as _Tabs } from '@base-ui/react/tabs'; import { TabsValidationProvider } from './context'; import type { TabRootProps } from './types'; import { DirectionProvider } from '../utils/direction-provider'; /** * Groups the tabs and the corresponding panels. * * `Tabs` is a collection of React components that combine to render * an [ARIA-compliant tabs pattern](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/). * * Each tab shows its panel in place, without a change of URL. */ export const Root = forwardRef< HTMLDivElement, TabRootProps >( function TabsRoot( { ...otherProps }, forwardedRef ) { return ( <_Tabs.Root ref={ forwardedRef } { ...otherProps } /> ); } );