UNPKG

@redocly/theme

Version:

Shared UI components lib

5 lines (4 loc) 157 B
export function getTabId(label: string, index: number) { const cleanLabel = label.replace(/\s+/g, '-').toLowerCase(); return `${cleanLabel}-${index}`; }