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.
2 parents b1c9d79 + 995ec32 commit c43333cCopy full SHA for c43333c
src/Tabs.tsx
@@ -133,7 +133,7 @@ export const Tabs = memo(
133
};
134
135
const { getPanelId, getTabId } = (function useClosure() {
136
- const id = useId();
+ const id = id_props ?? useId();
137
138
const getPanelId = (tabIndex: number) => `tabpanel-${id}-${tabIndex}-panel`;
139
const getTabId = (tabIndex: number) => `tabpanel-${id}-${tabIndex}`;
0 commit comments