UNPKG

sveltfy

Version:

A material design framework/component library for Svelte, with full support for light and dark themes and customisability.

13 lines (11 loc) 281 B
/* eslint-disable */ // Shamefully ripped from https://github.com/lukeed/uid let IDX = 36; let HEX = ''; while (IDX--) HEX += IDX.toString(36); export default (len) => { let str = ''; let num = len || 11; while (num--) str += HEX[(Math.random() * 36) | 0]; return str; };