diff --git a/packages/web-react/src/components/Tabs/Tabs.tsx b/packages/web-react/src/components/Tabs/Tabs.tsx
index 0259b7efe8..d1081b4e44 100644
--- a/packages/web-react/src/components/Tabs/Tabs.tsx
+++ b/packages/web-react/src/components/Tabs/Tabs.tsx
@@ -1,13 +1,6 @@
import React from 'react';
-import { ChildrenProps, TabId, TransferProps } from '../../types';
-import { TabsProvider, TabsToggler } from './TabContext';
-
-export interface TabsProps extends ChildrenProps, TransferProps {
- selectedTab: TabId;
- toggle: TabsToggler;
- // eslint-disable-next-line react/require-default-props
- onSelectionChange?: (tabId: TabId) => void;
-}
+import { TabsProvider } from './TabContext';
+import { TabsProps } from '../../types';
const Tabs = ({ children, selectedTab, toggle: selectTab, onSelectionChange }: TabsProps): JSX.Element => (
{children}
diff --git a/packages/web-react/src/components/Tabs/stories/Tabs.stories.tsx b/packages/web-react/src/components/Tabs/stories/Tabs.stories.tsx
index 89d07c48dc..68fc581fbf 100644
--- a/packages/web-react/src/components/Tabs/stories/Tabs.stories.tsx
+++ b/packages/web-react/src/components/Tabs/stories/Tabs.stories.tsx
@@ -1,10 +1,9 @@
import React, { useCallback, useState } from 'react';
import { Markdown } from '@storybook/blocks';
import type { Meta, StoryObj } from '@storybook/react';
-
-import { TabId } from '../../../types';
+import { TabId, TabsProps } from '../../../types';
import ReadMe from '../README.md';
-import { TabContent, TabItem, TabList, TabPane, Tabs, TabsProps } from '..';
+import { TabContent, TabItem, TabList, TabPane, Tabs } from '..';
const meta: Meta = {
title: 'Components/Tabs',
diff --git a/packages/web-react/src/types/tabs.ts b/packages/web-react/src/types/tabs.ts
index 9bca2dfc7b..4a30dfecba 100644
--- a/packages/web-react/src/types/tabs.ts
+++ b/packages/web-react/src/types/tabs.ts
@@ -1,5 +1,6 @@
import { ElementType } from 'react';
import { ChildrenProps, SpiritPolymorphicElementPropsWithRef, StyleProps, TransferProps } from './shared';
+import { TabsToggler } from '../components';
export type TabId = string | number;
@@ -12,6 +13,13 @@ export interface SpiritTabsProps {
forTab?: TabId;
}
+export interface TabsProps extends ChildrenProps, TransferProps {
+ selectedTab: TabId;
+ toggle: TabsToggler;
+ // eslint-disable-next-line react/require-default-props
+ onSelectionChange?: (tabId: TabId) => void;
+}
+
export type TabLinkItemProps = StyleProps & React.HTMLProps;
export interface TabLinkBaseProps extends ChildrenProps, StyleProps, TransferProps {