Skip to content

Commit

Permalink
docs: mention when useId composable was introduced (#25953)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojvribeiro committed Feb 26, 2024
1 parent 0a8c344 commit be85a72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/3.api/2.composables/use-id.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit be85a72

Please sign in to comment.