docs: mention when useId composable was introduced (#25953)

This commit is contained in:
Victor Ribeiro 2024-02-26 04:13:55 -03:00 committed by GitHub
parent 0a8c3444a5
commit be85a72f99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,10 @@ title: "useId"
description: Generate an SSR-friendly unique identifier that can be passed to accessibility attributes.
---
::important
This composable is available since [Nuxt v3.10](/v3-10#ssr-safe-accessible-unique-id-creation).
::
`useId` generates an SSR-friendly unique identifier that can be passed to accessibility attributes.
Call `useId` at the top level of your component to generate a unique string identifier: