2024-09-25 22:20:47 +02:00
|
|
|
---
|
|
|
|
interface Props {
|
|
|
|
label: string
|
|
|
|
type?: "text" | "email" | "password" | "number"
|
|
|
|
name: string
|
|
|
|
required?: boolean
|
|
|
|
placeholder?: string
|
|
|
|
}
|
|
|
|
|
|
|
|
const {
|
|
|
|
label,
|
|
|
|
type = "text",
|
|
|
|
name,
|
|
|
|
required = false,
|
|
|
|
placeholder,
|
|
|
|
} = Astro.props
|
|
|
|
---
|
|
|
|
|
|
|
|
<label class="flex flex-col">
|
|
|
|
{label}
|
|
|
|
<input
|
2025-02-15 18:01:17 +01:00
|
|
|
class="input input-bordered w-full"
|
2024-09-25 22:20:47 +02:00
|
|
|
type={type}
|
|
|
|
name={name}
|
|
|
|
required={required}
|
|
|
|
placeholder={placeholder}
|
|
|
|
/>
|
|
|
|
</label>
|