Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
useId
1 parent 5b29dd3 commit 401370bCopy full SHA for 401370b
docs/3.api/2.composables/use-id.md
@@ -19,11 +19,15 @@ const id = useId()
19
<template>
20
<div>
21
<label :for="id">Email</label>
22
- <input :id="id" name="email" type="email"/>
+ <input :id="id" name="email" type="email" />
23
</div>
24
</template>
25
```
26
27
+::note
28
+`useId` must be used in a component with a single root element, as it uses this root element's attributes to pass the id from server to client.
29
+::
30
+
31
## Parameters
32
33
`useId` does not take any parameters.
0 commit comments