UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

17 lines (16 loc) 528 B
//#region src/utils/string.d.ts /** * Normalizes a string to be used as an identifier * - Converts to lowercase * - Replaces spaces and special characters with hyphens * - Removes consecutive hyphens * - Trims leading/trailing hyphens */ declare const normalizeToId: (str: string) => string; /** * Generates a menu item ID from title and level */ declare const generateMenuItemId: (title: string, level?: number) => string; //#endregion export { generateMenuItemId, normalizeToId }; //# sourceMappingURL=string.d.ts.map