Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: mention when useId composable was introduced #25953

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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