← catalogo / forms/input-groups
TW-FO-IG-20
Tailwind Plus
tailwind/application-ui/forms/input-groups/20-input-with-gray-background-and-bottom-border
html: questa e' vue, sotto c'e' il sorgente.
<template>
<div>
<label for="name" class="block text-sm/6 font-medium text-gray-900 dark:text-white">Name</label>
<div class="relative mt-2">
<input type="text" name="name" id="name" class="peer block w-full bg-gray-50 px-3 py-1.5 text-gray-900 placeholder:text-gray-500 focus:outline-none sm:text-sm/6 dark:bg-white/5 dark:text-white dark:placeholder:text-gray-500" placeholder="Jane Smith" />
<div class="absolute inset-x-0 bottom-0 border-t border-gray-300 peer-focus:border-t-2 peer-focus:border-indigo-600 dark:border-white/20 dark:peer-focus:border-indigo-500" aria-hidden="true"></div>
</div>
</div>
</template>