Skip to content

useId

Generate random id

Usage

ts
import { useId } from 'radix-vue'

const buttonId = useId() // radix-1
ts
import { useId } from 'radix-vue'

const buttonId = useId('test-id') // test-id