Skip to content

Commit 995ec32

Browse files
committed
handle id_props in Tabs
1 parent b2243aa commit 995ec32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const Tabs = memo(
131131
};
132132

133133
const { getPanelId, getTabId } = (function useClosure() {
134-
const id = useId();
134+
const id = id_props ?? useId();
135135

136136
const getPanelId = (tabIndex: number) => `tabpanel-${id}-${tabIndex}-panel`;
137137
const getTabId = (tabIndex: number) => `tabpanel-${id}-${tabIndex}`;

0 commit comments

Comments
 (0)