feat: use drink api in front and more #16

Merged
Clement merged 47 commits from feat/use-drink-api-in-front into master 2024-06-07 17:09:58 +00:00
Showing only changes of commit 20ebad74fb - Show all commits

View File

@ -1,14 +1,14 @@
--- ---
import type { Input as Props } from 'types'; import type { Input as Props } from 'types';
const { type, name, label, autocomplete, placeholder} = Astro.props; const { type, name, label, autocomplete, placeholder, divClass, inputClass} = Astro.props;
--- ---
<> <>
{ {
name && ( name && (
<div class="mb-6"> <div class={divClass}>
{label && ( {label && (
<label for={name} class="block text-sm font-medium"> <label for={name} class="block text-sm font-medium">
{label} {label}
@ -20,7 +20,7 @@ const { type, name, label, autocomplete, placeholder} = Astro.props;
id={name} id={name}
autocomplete={autocomplete} autocomplete={autocomplete}
placeholder={placeholder} placeholder={placeholder}
class="py-3 px-4 block w-full text-md rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-slate-900" class={"py-3 px-4 block w-full text-md rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-slate-900" + inputClass}
/> />
</div> </div>
) )