--- 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: ```vue [components/EmailField.vue] ``` ## Parameters `useId` does not take any parameters. ## Returns `useId` returns a unique string associated with this particular `useId` call in this particular component.