diff --git a/src/Tabs.tsx b/src/Tabs.tsx index bf86aa23..80348333 100644 --- a/src/Tabs.tsx +++ b/src/Tabs.tsx @@ -131,7 +131,7 @@ export const Tabs = memo( }; const { getPanelId, getTabId } = (function useClosure() { - const id = useId(); + const id = id_props ?? useId(); const getPanelId = (tabIndex: number) => `tabpanel-${id}-${tabIndex}-panel`; const getTabId = (tabIndex: number) => `tabpanel-${id}-${tabIndex}`;