@boxyhq/svelte-ui
Version:
Svelte UI components from BoxyHQ
10 lines (9 loc) • 483 B
TypeScript
/**
* Util function that helps to generate unique HTML ids that are namespaced by
* the prefix and element type
* @param prefix Pass anything that needs to be prefixed to the id
* @param elementType Pass the HTML element type here (e.g., input)
* @returns {string} Id that is gauranteed to be unique and suitable for html id attributes across various components
*/
declare const htmlIdGenerator: (prefix: string, elementType: string) => string;
export default htmlIdGenerator;