bits-ui
Version:
The headless components for Svelte.
9 lines (8 loc) • 320 B
TypeScript
/**
* Creates a unique ID for a given uid and optional prefix.
*
* @param uid - the uid generated by $props.id()
* @param prefix - optional prefix to use for the id (defaults to "bits")
*/
export declare function createId(uid: string): string;
export declare function createId(prefix: string, uid: string): string;