@props(['name', 'label', 'value' => '', 'type' => 'text', 'required' => false])

<label class="block text-sm">
    {{ $label }}
    <input
        name="{{ $name }}"
        type="{{ $type }}"
        value="{{ $value }}"
        @required($required)
        @if ($type === 'number') step="0.001" min="0" @endif
        class="mt-1 w-full rounded-md border px-3 py-2"
    >
</label>
