mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-01 18:07:22 +00:00
docs: mention when useId
composable was introduced (#25953)
This commit is contained in:
parent
0a8c3444a5
commit
be85a72f99
@ -3,6 +3,10 @@ title: "useId"
|
|||||||
description: Generate an SSR-friendly unique identifier that can be passed to accessibility attributes.
|
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.
|
`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:
|
Call `useId` at the top level of your component to generate a unique string identifier:
|
||||||
|
Loading…
Reference in New Issue
Block a user