@angelineuniverse/design
Version:
Angeline Design UI Library
14 lines (13 loc) • 314 B
text/typescript
export interface ModelTabItem {
label: string;
value: string | number;
children?: any;
onTabSelected?: (e: any) => void
}
export const sanitizeForId = (label: string) => {
return label
.toLowerCase()
.replace(/[^\w\s]|(\s+)/g, (_match: string, group1: string) =>
group1 ? "-" : ""
);
}