Nuxt/test/fixtures/basic/components/ComponentWithIds.vue

22 lines
362 B
Vue
Raw Normal View History

<script setup>
const emailId = useId()
const passwordId = useId()
</script>
<template>
<div>
<label :for="emailId">Email</label>
<input
:id="emailId"
name="email"
type="email"
>
<label :for="passwordId">Password</label>
<input
:id="passwordId"
name="password"
type="password"
>
</div>
</template>