Sha256: df91664f7504b429684b3964601696ccecd7efe270205c6df3eb6a7bf660d973
Contents?: true
Size: 1.84 KB
Versions: 1
Compression:
Stored size: 1.84 KB
Contents
<alv-input-counter class="block max-w-xs mx-auto"> <%= f.label @attribute, class: "block mb-2 text-sm font-medium text-gray-900 dark:text-white" %> <div class="relative flex items-center max-w-[8rem]"> <button type="button" id="decrement-button" data-input-counter-decrement="<%= @id %>" class="bg-gray-100 dark:bg-gray-700 dark:hover:bg-gray-600 dark:border-gray-600 hover:bg-gray-200 border border-gray-300 rounded-s-lg p-3 h-11 focus:ring-gray-100 dark:focus:ring-gray-700 focus:ring-2 focus:outline-none"> <svg class="w-3 h-3 text-gray-900 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 2"> <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 1h16"/> </svg> </button> <%= f.input_field @attribute, as: :string, id: @id, "data-input-counter": true, "aria-describedby": "helper-text-explanation", placeholder: "999", required: @required, class: "bg-white border-x-0 border-gray-300 h-11 text-center text-gray-900 text-sm focus:ring-blue-500 focus:border-blue-500 block w-full py-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" %> <button type="button" id="increment-button" data-input-counter-increment="<%= @id %>" class="bg-gray-100 dark:bg-gray-700 dark:hover:bg-gray-600 dark:border-gray-600 hover:bg-gray-200 border border-gray-300 rounded-e-lg p-3 h-11 focus:ring-gray-100 dark:focus:ring-gray-700 focus:ring-2 focus:outline-none"> <svg class="w-3 h-3 text-gray-900 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"> <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 1v16M1 9h16"/> </svg> </button> </div> </alv-input-counter>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alveole-1.0.0.pre.alpha.1 | app/components/alveole/input/counter_component.html.erb |