HTML JavaScript React Next.js Vue Nuxt Astro Svelte
< div class = "mx-auto w-full max-w-lg font-sans text-sm text-zinc-900" >
< form method = "post" action = "#" class = "flex flex-col font-sans" >
< h2 class = "font-sans text-xl font-bold tracking-tight text-zinc-900" > Care to share more? </ h2 >
< p class = "mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500" > How was your overall experience? What is one thing you will not forget? </ p >
< div class = "flex flex-wrap gap-2 font-sans" >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Easy to use" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Easy to use </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fast setup" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fast setup </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Reliable" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Reliable </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Clear docs" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Clear docs </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Great support" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Great support </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fair pricing" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fair pricing </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Polished UI" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Polished UI </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Helpful" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Helpful </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Would recommend" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Would recommend </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Trustworthy" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Trustworthy </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Flexible" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Flexible </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Well designed" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Well designed </ span >
</ label >
</ div >
< hr class = "my-6 border-0 border-t border-dashed border-zinc-300" />
< textarea name = "message" rows = "4" placeholder = "Come on, you know the drill." class = "mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none" > </ textarea >
< hr class = "my-6 border-0 border-t border-dashed border-zinc-300" />
< button type = "submit" class = "mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]" > Publish review </ button >
</ form >
</ div >
<div class="mx-auto w-full max-w-lg font-sans text-sm text-zinc-900">
<form method="post" action="#" class="flex flex-col font-sans">
<h2 class="font-sans text-xl font-bold tracking-tight text-zinc-900">Care to share more?</h2>
<p class="mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500">How was your overall experience? What is one thing you will not forget?</p>
<div class="flex flex-wrap gap-2 font-sans">
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Easy to use" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Easy to use</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fast setup" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fast setup</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Reliable" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Reliable</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Clear docs" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Clear docs</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Great support" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Great support</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fair pricing" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fair pricing</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Polished UI" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Polished UI</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Helpful" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Helpful</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Would recommend" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Would recommend</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Trustworthy" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Trustworthy</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Flexible" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Flexible</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Well designed" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Well designed</span>
</label>
</div>
<hr class="my-6 border-0 border-t border-dashed border-zinc-300" />
<textarea name="message" rows="4" placeholder="Come on, you know the drill." class="mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none"></textarea>
<hr class="my-6 border-0 border-t border-dashed border-zinc-300" />
<button type="submit" class="mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]">Publish review</button>
</form>
</div>
< div class = "mx-auto w-full max-w-lg font-sans text-sm text-zinc-900" >
< form id = "feedback-form" method = "post" action = "#" class = "flex flex-col font-sans" >
< h2 class = "font-sans text-xl font-bold tracking-tight text-zinc-900" > Care to share more? </ h2 >
< p class = "mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500" > How was your overall experience? What is one thing you will not forget? </ p >
< div class = "flex flex-wrap gap-2 font-sans" >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Easy to use" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Easy to use </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fast setup" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fast setup </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Reliable" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Reliable </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Clear docs" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Clear docs </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Great support" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Great support </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fair pricing" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fair pricing </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Polished UI" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Polished UI </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Helpful" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Helpful </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Would recommend" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Would recommend </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Trustworthy" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Trustworthy </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Flexible" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Flexible </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Well designed" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Well designed </ span >
</ label >
</ div >
< hr class = "my-6 border-0 border-t border-dashed border-zinc-300" />
< textarea name = "message" rows = "4" placeholder = "Come on, you know the drill." class = "mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none" > </ textarea >
< hr class = "my-6 border-0 border-t border-dashed border-zinc-300" />
< button type = "submit" class = "mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]" > Publish review </ button >
</ form >
</ div >
< script >
document . getElementById ( 'feedback-form' ) ? . addEventListener ( 'submit' , ( event ) = > {
event . preventDefault ( ) ;
const data = new FormData ( event . currentTarget ) ;
// Handle form data (fetch, auth API, etc.)
console . log ( Object . fromEntries ( data . entries ( ) ) ) ;
} ) ;
</ script >
<div class="mx-auto w-full max-w-lg font-sans text-sm text-zinc-900">
<form id="feedback-form" method="post" action="#" class="flex flex-col font-sans">
<h2 class="font-sans text-xl font-bold tracking-tight text-zinc-900">Care to share more?</h2>
<p class="mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500">How was your overall experience? What is one thing you will not forget?</p>
<div class="flex flex-wrap gap-2 font-sans">
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Easy to use" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Easy to use</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fast setup" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fast setup</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Reliable" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Reliable</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Clear docs" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Clear docs</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Great support" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Great support</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fair pricing" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fair pricing</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Polished UI" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Polished UI</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Helpful" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Helpful</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Would recommend" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Would recommend</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Trustworthy" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Trustworthy</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Flexible" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Flexible</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Well designed" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Well designed</span>
</label>
</div>
<hr class="my-6 border-0 border-t border-dashed border-zinc-300" />
<textarea name="message" rows="4" placeholder="Come on, you know the drill." class="mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none"></textarea>
<hr class="my-6 border-0 border-t border-dashed border-zinc-300" />
<button type="submit" class="mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]">Publish review</button>
</form>
</div>
<script>
document.getElementById('feedback-form')?.addEventListener('submit', (event) => {
event.preventDefault();
const data = new FormData(event.currentTarget);
// Handle form data (fetch, auth API, etc.)
console.log(Object.fromEntries(data.entries()));
});
</script>
function FeedbackForm ( ) {
function handleSubmit ( event ) {
event . preventDefault ( ) ;
const data = new FormData ( event . currentTarget ) ;
// Handle form data (fetch, auth API, etc.)
console . log ( Object . fromEntries ( data . entries ( ) ) ) ;
}
return (
< div className = "mx-auto w-full max-w-lg font-sans text-sm text-zinc-900" >
< form onSubmit = { handleSubmit } className = "flex flex-col font-sans" >
< h2 className = "font-sans text-xl font-bold tracking-tight text-zinc-900" > Care to share more? </ h2 >
< p className = "mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500" > How was your overall experience? What is one thing you will not forget? </ p >
< div className = "flex flex-wrap gap-2 font-sans" >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Easy to use" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Easy to use </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fast setup" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fast setup </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Reliable" defaultChecked className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Reliable </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Clear docs" defaultChecked className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Clear docs </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Great support" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Great support </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fair pricing" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fair pricing </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Polished UI" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Polished UI </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Helpful" defaultChecked className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Helpful </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Would recommend" defaultChecked className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Would recommend </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Trustworthy" defaultChecked className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Trustworthy </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Flexible" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Flexible </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Well designed" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Well designed </ span >
</ label >
</ div >
< hr className = "my-6 border-0 border-t border-dashed border-zinc-300" />
< textarea name = "message" rows = "4" placeholder = "Come on, you know the drill." className = "mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none" > </ textarea >
< hr className = "my-6 border-0 border-t border-dashed border-zinc-300" />
< button type = "submit" className = "mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]" > Publish review </ button >
</ form >
</ div >
) ;
}
function FeedbackForm() {
function handleSubmit(event) {
event.preventDefault();
const data = new FormData(event.currentTarget);
// Handle form data (fetch, auth API, etc.)
console.log(Object.fromEntries(data.entries()));
}
return (
<div className="mx-auto w-full max-w-lg font-sans text-sm text-zinc-900">
<form onSubmit={handleSubmit} className="flex flex-col font-sans">
<h2 className="font-sans text-xl font-bold tracking-tight text-zinc-900">Care to share more?</h2>
<p className="mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500">How was your overall experience? What is one thing you will not forget?</p>
<div className="flex flex-wrap gap-2 font-sans">
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Easy to use" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Easy to use</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fast setup" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fast setup</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Reliable" defaultChecked className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Reliable</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Clear docs" defaultChecked className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Clear docs</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Great support" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Great support</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fair pricing" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fair pricing</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Polished UI" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Polished UI</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Helpful" defaultChecked className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Helpful</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Would recommend" defaultChecked className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Would recommend</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Trustworthy" defaultChecked className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Trustworthy</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Flexible" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Flexible</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Well designed" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Well designed</span>
</label>
</div>
<hr className="my-6 border-0 border-t border-dashed border-zinc-300" />
<textarea name="message" rows="4" placeholder="Come on, you know the drill." className="mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none"></textarea>
<hr className="my-6 border-0 border-t border-dashed border-zinc-300" />
<button type="submit" className="mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]">Publish review</button>
</form>
</div>
);
}
'use client' ;
export default function FeedbackForm ( ) {
function handleSubmit ( event ) {
event . preventDefault ( ) ;
const data = new FormData ( event . currentTarget ) ;
// Handle form data (fetch, auth API, etc.)
console . log ( Object . fromEntries ( data . entries ( ) ) ) ;
}
return (
< div className = "mx-auto w-full max-w-lg font-sans text-sm text-zinc-900" >
< form onSubmit = { handleSubmit } className = "flex flex-col font-sans" >
< h2 className = "font-sans text-xl font-bold tracking-tight text-zinc-900" > Care to share more? </ h2 >
< p className = "mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500" > How was your overall experience? What is one thing you will not forget? </ p >
< div className = "flex flex-wrap gap-2 font-sans" >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Easy to use" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Easy to use </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fast setup" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fast setup </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Reliable" defaultChecked className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Reliable </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Clear docs" defaultChecked className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Clear docs </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Great support" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Great support </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fair pricing" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fair pricing </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Polished UI" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Polished UI </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Helpful" defaultChecked className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Helpful </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Would recommend" defaultChecked className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Would recommend </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Trustworthy" defaultChecked className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Trustworthy </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Flexible" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Flexible </ span >
</ label >
< label className = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Well designed" className = "peer sr-only" />
< span className = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Well designed </ span >
</ label >
</ div >
< hr className = "my-6 border-0 border-t border-dashed border-zinc-300" />
< textarea name = "message" rows = "4" placeholder = "Come on, you know the drill." className = "mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none" > </ textarea >
< hr className = "my-6 border-0 border-t border-dashed border-zinc-300" />
< button type = "submit" className = "mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]" > Publish review </ button >
</ form >
</ div >
) ;
}
'use client';
export default function FeedbackForm() {
function handleSubmit(event) {
event.preventDefault();
const data = new FormData(event.currentTarget);
// Handle form data (fetch, auth API, etc.)
console.log(Object.fromEntries(data.entries()));
}
return (
<div className="mx-auto w-full max-w-lg font-sans text-sm text-zinc-900">
<form onSubmit={handleSubmit} className="flex flex-col font-sans">
<h2 className="font-sans text-xl font-bold tracking-tight text-zinc-900">Care to share more?</h2>
<p className="mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500">How was your overall experience? What is one thing you will not forget?</p>
<div className="flex flex-wrap gap-2 font-sans">
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Easy to use" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Easy to use</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fast setup" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fast setup</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Reliable" defaultChecked className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Reliable</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Clear docs" defaultChecked className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Clear docs</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Great support" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Great support</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fair pricing" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fair pricing</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Polished UI" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Polished UI</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Helpful" defaultChecked className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Helpful</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Would recommend" defaultChecked className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Would recommend</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Trustworthy" defaultChecked className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Trustworthy</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Flexible" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Flexible</span>
</label>
<label className="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Well designed" className="peer sr-only" />
<span className="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Well designed</span>
</label>
</div>
<hr className="my-6 border-0 border-t border-dashed border-zinc-300" />
<textarea name="message" rows="4" placeholder="Come on, you know the drill." className="mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none"></textarea>
<hr className="my-6 border-0 border-t border-dashed border-zinc-300" />
<button type="submit" className="mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]">Publish review</button>
</form>
</div>
);
}
< script setup >
function onSubmit ( event ) {
const data = new FormData ( event . currentTarget ) ;
// Handle form data (fetch, auth API, etc.)
console . log ( Object . fromEntries ( data . entries ( ) ) ) ;
}
</ script >
< template >
< div class = "mx-auto w-full max-w-lg font-sans text-sm text-zinc-900" >
< form class = "flex flex-col font-sans" @submit.prevent = "onSubmit" >
< h2 class = "font-sans text-xl font-bold tracking-tight text-zinc-900" > Care to share more? </ h2 >
< p class = "mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500" > How was your overall experience? What is one thing you will not forget? </ p >
< div class = "flex flex-wrap gap-2 font-sans" >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Easy to use" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Easy to use </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fast setup" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fast setup </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Reliable" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Reliable </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Clear docs" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Clear docs </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Great support" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Great support </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fair pricing" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fair pricing </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Polished UI" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Polished UI </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Helpful" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Helpful </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Would recommend" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Would recommend </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Trustworthy" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Trustworthy </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Flexible" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Flexible </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Well designed" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Well designed </ span >
</ label >
</ div >
< hr class = "my-6 border-0 border-t border-dashed border-zinc-300" />
< textarea name = "message" rows = "4" placeholder = "Come on, you know the drill." class = "mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none" > </ textarea >
< hr class = "my-6 border-0 border-t border-dashed border-zinc-300" />
< button type = "submit" class = "mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]" > Publish review </ button >
</ form >
</ div >
</ template >
<script setup>
function onSubmit(event) {
const data = new FormData(event.currentTarget);
// Handle form data (fetch, auth API, etc.)
console.log(Object.fromEntries(data.entries()));
}
</script>
<template>
<div class="mx-auto w-full max-w-lg font-sans text-sm text-zinc-900">
<form class="flex flex-col font-sans" @submit.prevent="onSubmit">
<h2 class="font-sans text-xl font-bold tracking-tight text-zinc-900">Care to share more?</h2>
<p class="mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500">How was your overall experience? What is one thing you will not forget?</p>
<div class="flex flex-wrap gap-2 font-sans">
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Easy to use" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Easy to use</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fast setup" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fast setup</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Reliable" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Reliable</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Clear docs" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Clear docs</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Great support" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Great support</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fair pricing" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fair pricing</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Polished UI" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Polished UI</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Helpful" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Helpful</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Would recommend" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Would recommend</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Trustworthy" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Trustworthy</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Flexible" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Flexible</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Well designed" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Well designed</span>
</label>
</div>
<hr class="my-6 border-0 border-t border-dashed border-zinc-300" />
<textarea name="message" rows="4" placeholder="Come on, you know the drill." class="mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none"></textarea>
<hr class="my-6 border-0 border-t border-dashed border-zinc-300" />
<button type="submit" class="mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]">Publish review</button>
</form>
</div>
</template>
< script setup >
function onSubmit ( event ) {
const data = new FormData ( event . currentTarget ) ;
// Handle form data (fetch, auth API, etc.)
console . log ( Object . fromEntries ( data . entries ( ) ) ) ;
}
</ script >
< template >
< div class = "mx-auto w-full max-w-lg font-sans text-sm text-zinc-900" >
< form class = "flex flex-col font-sans" @submit.prevent = "onSubmit" >
< h2 class = "font-sans text-xl font-bold tracking-tight text-zinc-900" > Care to share more? </ h2 >
< p class = "mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500" > How was your overall experience? What is one thing you will not forget? </ p >
< div class = "flex flex-wrap gap-2 font-sans" >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Easy to use" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Easy to use </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fast setup" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fast setup </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Reliable" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Reliable </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Clear docs" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Clear docs </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Great support" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Great support </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fair pricing" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fair pricing </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Polished UI" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Polished UI </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Helpful" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Helpful </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Would recommend" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Would recommend </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Trustworthy" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Trustworthy </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Flexible" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Flexible </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Well designed" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Well designed </ span >
</ label >
</ div >
< hr class = "my-6 border-0 border-t border-dashed border-zinc-300" />
< textarea name = "message" rows = "4" placeholder = "Come on, you know the drill." class = "mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none" > </ textarea >
< hr class = "my-6 border-0 border-t border-dashed border-zinc-300" />
< button type = "submit" class = "mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]" > Publish review </ button >
</ form >
</ div >
</ template >
<script setup>
function onSubmit(event) {
const data = new FormData(event.currentTarget);
// Handle form data (fetch, auth API, etc.)
console.log(Object.fromEntries(data.entries()));
}
</script>
<template>
<div class="mx-auto w-full max-w-lg font-sans text-sm text-zinc-900">
<form class="flex flex-col font-sans" @submit.prevent="onSubmit">
<h2 class="font-sans text-xl font-bold tracking-tight text-zinc-900">Care to share more?</h2>
<p class="mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500">How was your overall experience? What is one thing you will not forget?</p>
<div class="flex flex-wrap gap-2 font-sans">
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Easy to use" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Easy to use</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fast setup" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fast setup</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Reliable" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Reliable</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Clear docs" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Clear docs</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Great support" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Great support</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fair pricing" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fair pricing</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Polished UI" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Polished UI</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Helpful" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Helpful</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Would recommend" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Would recommend</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Trustworthy" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Trustworthy</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Flexible" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Flexible</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Well designed" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Well designed</span>
</label>
</div>
<hr class="my-6 border-0 border-t border-dashed border-zinc-300" />
<textarea name="message" rows="4" placeholder="Come on, you know the drill." class="mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none"></textarea>
<hr class="my-6 border-0 border-t border-dashed border-zinc-300" />
<button type="submit" class="mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]">Publish review</button>
</form>
</div>
</template>
---
// src/components/FeedbackForm.astro
---
< div class = "mx-auto w-full max-w-lg font-sans text-sm text-zinc-900" >
< form method = "post" action = "#" class = "flex flex-col font-sans" >
< h2 class = "font-sans text-xl font-bold tracking-tight text-zinc-900" > Care to share more? </ h2 >
< p class = "mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500" > How was your overall experience? What is one thing you will not forget? </ p >
< div class = "flex flex-wrap gap-2 font-sans" >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Easy to use" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Easy to use </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fast setup" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fast setup </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Reliable" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Reliable </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Clear docs" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Clear docs </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Great support" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Great support </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fair pricing" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fair pricing </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Polished UI" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Polished UI </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Helpful" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Helpful </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Would recommend" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Would recommend </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Trustworthy" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Trustworthy </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Flexible" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Flexible </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Well designed" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Well designed </ span >
</ label >
</ div >
< hr class = "my-6 border-0 border-t border-dashed border-zinc-300" />
< textarea name = "message" rows = "4" placeholder = "Come on, you know the drill." class = "mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none" > </ textarea >
< hr class = "my-6 border-0 border-t border-dashed border-zinc-300" />
< button type = "submit" class = "mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]" > Publish review </ button >
</ form >
</ div >
---
// src/components/FeedbackForm.astro
---
<div class="mx-auto w-full max-w-lg font-sans text-sm text-zinc-900">
<form method="post" action="#" class="flex flex-col font-sans">
<h2 class="font-sans text-xl font-bold tracking-tight text-zinc-900">Care to share more?</h2>
<p class="mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500">How was your overall experience? What is one thing you will not forget?</p>
<div class="flex flex-wrap gap-2 font-sans">
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Easy to use" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Easy to use</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fast setup" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fast setup</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Reliable" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Reliable</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Clear docs" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Clear docs</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Great support" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Great support</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fair pricing" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fair pricing</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Polished UI" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Polished UI</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Helpful" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Helpful</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Would recommend" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Would recommend</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Trustworthy" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Trustworthy</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Flexible" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Flexible</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Well designed" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Well designed</span>
</label>
</div>
<hr class="my-6 border-0 border-t border-dashed border-zinc-300" />
<textarea name="message" rows="4" placeholder="Come on, you know the drill." class="mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none"></textarea>
<hr class="my-6 border-0 border-t border-dashed border-zinc-300" />
<button type="submit" class="mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]">Publish review</button>
</form>
</div>
< script >
function onSubmit ( event ) {
const data = new FormData ( event . currentTarget ) ;
// Handle form data (fetch, auth API, etc.)
console . log ( Object . fromEntries ( data . entries ( ) ) ) ;
}
</ script >
< div class = "mx-auto w-full max-w-lg font-sans text-sm text-zinc-900" >
< form method = "post" class = "flex flex-col font-sans" on:submit |preventDefault={onSubmit}>
< h2 class = "font-sans text-xl font-bold tracking-tight text-zinc-900" > Care to share more? </ h2 >
< p class = "mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500" > How was your overall experience? What is one thing you will not forget? </ p >
< div class = "flex flex-wrap gap-2 font-sans" >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Easy to use" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Easy to use </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fast setup" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fast setup </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Reliable" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Reliable </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Clear docs" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Clear docs </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Great support" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Great support </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Fair pricing" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Fair pricing </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Polished UI" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Polished UI </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Helpful" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Helpful </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Would recommend" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Would recommend </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Trustworthy" checked class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Trustworthy </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Flexible" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Flexible </ span >
</ label >
< label class = "inline-flex cursor-pointer select-none font-sans" >
< input type = "checkbox" name = "traits" value = "Well designed" class = "peer sr-only" />
< span class = "rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]" > Well designed </ span >
</ label >
</ div >
< hr class = "my-6 border-0 border-t border-dashed border-zinc-300" />
< textarea name = "message" rows = "4" placeholder = "Come on, you know the drill." class = "mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none" > </ textarea >
< hr class = "my-6 border-0 border-t border-dashed border-zinc-300" />
< button type = "submit" class = "mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]" > Publish review </ button >
</ form >
</ div >
<script>
function onSubmit(event) {
const data = new FormData(event.currentTarget);
// Handle form data (fetch, auth API, etc.)
console.log(Object.fromEntries(data.entries()));
}
</script>
<div class="mx-auto w-full max-w-lg font-sans text-sm text-zinc-900">
<form method="post" class="flex flex-col font-sans" on:submit|preventDefault={onSubmit}>
<h2 class="font-sans text-xl font-bold tracking-tight text-zinc-900">Care to share more?</h2>
<p class="mt-2 mb-5 font-sans text-sm leading-6 text-zinc-500">How was your overall experience? What is one thing you will not forget?</p>
<div class="flex flex-wrap gap-2 font-sans">
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Easy to use" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Easy to use</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fast setup" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fast setup</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Reliable" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Reliable</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Clear docs" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Clear docs</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Great support" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Great support</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Fair pricing" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Fair pricing</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Polished UI" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Polished UI</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Helpful" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Helpful</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Would recommend" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Would recommend</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Trustworthy" checked class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Trustworthy</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Flexible" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Flexible</span>
</label>
<label class="inline-flex cursor-pointer select-none font-sans">
<input type="checkbox" name="traits" value="Well designed" class="peer sr-only" />
<span class="rounded-lg bg-zinc-100 px-3 py-2 font-sans text-sm text-zinc-900 transition hover:bg-zinc-200 peer-checked:bg-[#7c3aed] peer-checked:text-white peer-checked:hover:bg-[#6d28d9]">Well designed</span>
</label>
</div>
<hr class="my-6 border-0 border-t border-dashed border-zinc-300" />
<textarea name="message" rows="4" placeholder="Come on, you know the drill." class="mt-4 block min-h-28 w-full resize-y rounded-xl border border-zinc-300 bg-white px-3.5 py-3 font-sans text-sm text-zinc-900 placeholder:text-zinc-400 hover:border-zinc-400 focus:border-[#7c3aed] focus:outline-none focus:ring-[3px] focus:ring-[#c4b5fd]/50 focus-visible:!outline-none"></textarea>
<hr class="my-6 border-0 border-t border-dashed border-zinc-300" />
<button type="submit" class="mt-6 inline-flex w-full items-center justify-center rounded-xl bg-[#5b21b6] px-4 py-3.5 font-sans text-sm font-normal uppercase tracking-wide text-white transition hover:bg-[#4c1d95] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#7c3aed] active:scale-[0.99]">Publish review</button>
</form>
</div>