Skip to content

Commit

Permalink
docs: remove useuniqueid reference [KHCP-14269]
Browse files Browse the repository at this point in the history
  • Loading branch information
portikM committed Dec 5, 2024
1 parent 05ba34a commit a0a396d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guide/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,13 @@ It's essential to choose context-aware and descriptive names. This practice ensu

Sometimes you will need to generate a random string to be used as value for various attributes (e.g. accessibility-related attributes like `id`, `for`, `aria-labelledby`, etc.).

To generate a unique id so that it is safe for SSR, you **must** use the `useUniqueId` composable in your component:
To generate a unique id so that it is safe for SSR, you **must** use the [`useId` composable](https://vuejs.org/api/composition-api-helpers#useid) in your component:

```html
<script setup lang="ts">
import useUniqueId from '@/composables/useUniqueId'
import { useId } from 'vue'
const id = useUniqueId()
const id = useId()
</script>
```

Expand Down

0 comments on commit a0a396d

Please sign in to comment.