Application Quantity Inputs Base with plus and minus buttons, no spinners in the input',

Live Preview
<div>
      <label for="Quantity" class="sr-only"> Quantity </label>

      <div class="flex items-center gap-1">
        <button type="button" class="size-10 leading-10 text-gray-600 transition hover:opacity-75">
          &minus;
        </button>

        <input
          type="number"
          id="Quantity"
          value="1"
          class="h-10 w-24 rounded-sm border-gray-200 [-moz-appearance:textfield] sm:text-sm [&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:m-0 [&::-webkit-outer-spin-button]:appearance-none"
        />

        <button type="button" class="size-10 leading-10 text-gray-600 transition hover:opacity-75">
          &plus;
        </button>
      </div>
    </div>

Related components

More items from the merged UI library.

View all