Utilities

Below you'll find a number of useful utilities.

useId

Generates a unique identifier string. This function combines a random string and an incrementing counter to ensure uniqueness.

ts
import { useId } from '@skeletonlabs/floating-ui-svelte';

const id = useId();

Compare

Compare to Floating UI React.