From b8547313ac34b1a2b511e1e6e27def65d160050b Mon Sep 17 00:00:00 2001 From: "mukulsharma@adobe" Date: Tue, 29 Jul 2025 16:28:00 +0530 Subject: [PATCH] fix: react types backwards compat for Tabs --- packages/@react-spectrum/tabs/src/Tabs.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@react-spectrum/tabs/src/Tabs.tsx b/packages/@react-spectrum/tabs/src/Tabs.tsx index e6342c14bb7..b7731a8b22d 100644 --- a/packages/@react-spectrum/tabs/src/Tabs.tsx +++ b/packages/@react-spectrum/tabs/src/Tabs.tsx @@ -261,7 +261,7 @@ function TabLine(props: TabLineProps) { * A TabList is used within Tabs to group tabs that a user can switch between. * The keys of the items within the must match up with a corresponding item inside the . */ -export function TabList(props: SpectrumTabListProps): ReactNode { +export function TabList(props: SpectrumTabListProps): ReactElement { const tabContext = useContext(TabContext)!; const {refs, tabState, tabProps, tabPanelProps} = tabContext; const {isQuiet, density, isEmphasized, orientation} = tabProps; @@ -337,7 +337,7 @@ export function TabList(props: SpectrumTabListProps): ReactNode { * TabPanels is used within Tabs as a container for the content of each tab. * The keys of the items within the must match up with a corresponding item inside the . */ -export function TabPanels(props: SpectrumTabPanelsProps): ReactNode { +export function TabPanels(props: SpectrumTabPanelsProps): ReactElement { const {tabState, tabProps} = useContext(TabContext)!; const {tabListState} = tabState;