<div class="flex flex-col gap-2 max-w-min">
  {% if label %}
    <div>
      <label for="{{ id }}" class="leading-5">
        {{ label }}
      </label>

      {% if is_required %}
        <span class="text-red-600">*</span>
      {% endif %}
    </div>
  {% endif %}

  <div class="flex gap-2">
    <input
      type="text"
      class="
        form-field__control
        py-3 px-3

        {% block color_classes %}
          bg-grey-100 border border-grey-200
        {% endblock %}

        {{ extra_classes }}
      "
      value=""
      id="{{ id }}"
      name="{{ id }}"
      placeholder="{{ placeholder }}"
    />

    {% if is_required and not label %}
      <span class="text-red-600">*</span>
    {% endif %}
  </div>

  {% if hint %}
    <label
      class="text-grey-250 text-sm"
      for="{{ id }}"
    >{{ hint }}</label>
  {% endif %}
</div>
