We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2243aa commit 995ec32Copy full SHA for 995ec32
src/Tabs.tsx
@@ -131,7 +131,7 @@ export const Tabs = memo(
131
};
132
133
const { getPanelId, getTabId } = (function useClosure() {
134
- const id = useId();
+ const id = id_props ?? useId();
135
136
const getPanelId = (tabIndex: number) => `tabpanel-${id}-${tabIndex}-panel`;
137
const getTabId = (tabIndex: number) => `tabpanel-${id}-${tabIndex}`;
0 commit comments