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;