Checkbox select field

  • id:

Default

  • Super taška ale hodně hodně dlouhej label
    2
    '
  •         {% include "@Components/fields/checkbox-select-field/checkbox-select-field.twig" with {props: {
      label: "Super taška ale hodně hodně dlouhej label",
      name: "manufacturer",
      options: [
        {
          title: "AccuSharp",
          value: "accusharp",
          checked: true,
          description: "(12)",
        },
        {
          title: "Blade-Tech",
          value: "blade-tech",
          description: "(99)",
        },
        {
          title: "Demko Knives",
          value: "demkoknives",
        },
        {
          title: "Lansky",
          value: "Lansky",
        },
        {
          title: "127 mm",
          value: "127mm",
          checked: true,
        },
        {
          title: "160 mm",
          value: "param-1",
        },
        {
          title: "165 mm",
          value: "param-2",
        },
        {
          title: "168 mm",
          value: "param-3",
        },
        {
          title: "171 mm",
          value: "param-4",
        },
        {
          title: "111 mm",
          value: "param-5",
        },
      ]
    }} %}
    
          
  •           
    
                                    
    
    <div class="f-checkbox-select u-posr" data-name="manufacturer">
      <header class="f-checkbox-select__header d-flex align-items-center u-bg-white" title="Super taška ale hodně hodně dlouhej label">
    
        <div class="f-checkbox-select__label ms-2 overflow-hidden top-0 u-left-0 u-fw-600 u-fz-md u-posr u-cursor-pointer d-flex align-items-center gap-1">
          <span>Super taška ale hodně hodně dlouhej label</span>
              </div>
    
        <div class="flex-shrink-0 d-flex gap-2 ms-auto align-items-center">
          
    <span class="i-tag d-inline-flex align-items-center text-center justify-content-center gap-1 u-fw-500      --hoverable --active f-checkbox-select__clear">
          <span class="i-tag__title">2</span>
            <div class="i-tag__icon">
            
      <span class="icon d-flex align-items-center justify-content-center --colored --text --sm">
              <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">&apos;<path d="M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256l105.3-105.4z"/></svg>      </span>
        </div>
      </span>
    
          <div class="f-checkbox-select__toggler d-flex align-items-center justify-content-center u-cursor-pointer">
            <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none" viewBox="0 0 18 18"><path fill="#23846F" fill-rule="evenodd" d="m9 12.5 6-5.735L13.677 5.5 9 9.97 4.323 5.5 3 6.765 9 12.5Z" clip-rule="evenodd"/></svg>      </div>
        </div>
    
      </header>
    
      <div class="f-checkbox-select__body w-100 p-2 u-posa">
        <div class="f-checkbox-select__body-inner pb-2 pe-2 u-scrollbar" data-scrollbar-y>
    
          <div class="d-flex flex-column">
                        <label class="f-checkbox d-inline-flex gap-1 u-posr  align-items-center  --checkbox   gap-2 u-fw-600 mb-2">
      <input class="f-checkbox__input u-posa" type="checkbox" id="--accusharp" value="accusharp" checked="checked">
      <span class="f-checkbox__visual flex-shrink-0 d-flex align-items-center justify-content-center">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.522 4 14 5.5 7.901 11.51a2.107 2.107 0 0 1-2.972-.005L2 8.664l1.467-1.513 2.94 2.85L12.522 4Z"/></svg>  </span>
      <div class="f-checkbox__body d-flex column-gap-1 align-items-center">
        <span class="f-checkbox__title">
                        
              </span>
    
              <div class="f-checkbox__description flex-shrink-0 u-fz-sm">(12)</div>
        
          </div>
    
      <span class="f-error u-fz-sm gap-1 d-none">
      <span class="f-error__icon d-flex align-items-center justify-content-center">
          
      <span class="icon d-flex align-items-center justify-content-center --colored --danger --sm">
              <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24v112c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zm-32 224a32 32 0 1 1 64 0 32 32 0 1 1-64 0z"/></svg>      </span>
      </span>
    
      <span class="f-error__title"></span>
    </span>
    
    </label>
                      <label class="f-checkbox d-inline-flex gap-1 u-posr  align-items-center  --checkbox   gap-2 u-fw-600 mb-2">
      <input class="f-checkbox__input u-posa" type="checkbox" id="--blade-tech" value="blade-tech">
      <span class="f-checkbox__visual flex-shrink-0 d-flex align-items-center justify-content-center">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.522 4 14 5.5 7.901 11.51a2.107 2.107 0 0 1-2.972-.005L2 8.664l1.467-1.513 2.94 2.85L12.522 4Z"/></svg>  </span>
      <div class="f-checkbox__body d-flex column-gap-1 align-items-center">
        <span class="f-checkbox__title">
                        
              </span>
    
              <div class="f-checkbox__description flex-shrink-0 u-fz-sm">(99)</div>
        
          </div>
    
      <span class="f-error u-fz-sm gap-1 d-none">
      <span class="f-error__icon d-flex align-items-center justify-content-center">
          
      <span class="icon d-flex align-items-center justify-content-center --colored --danger --sm">
              <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24v112c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zm-32 224a32 32 0 1 1 64 0 32 32 0 1 1-64 0z"/></svg>      </span>
      </span>
    
      <span class="f-error__title"></span>
    </span>
    
    </label>
                      <label class="f-checkbox d-inline-flex gap-1 u-posr  align-items-center  --checkbox   gap-2 u-fw-600 mb-2">
      <input class="f-checkbox__input u-posa" type="checkbox" id="--demkoknives" value="demkoknives">
      <span class="f-checkbox__visual flex-shrink-0 d-flex align-items-center justify-content-center">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.522 4 14 5.5 7.901 11.51a2.107 2.107 0 0 1-2.972-.005L2 8.664l1.467-1.513 2.94 2.85L12.522 4Z"/></svg>  </span>
      <div class="f-checkbox__body d-flex column-gap-1 align-items-center">
        <span class="f-checkbox__title">
                        
              </span>
    
        
          </div>
    
      <span class="f-error u-fz-sm gap-1 d-none">
      <span class="f-error__icon d-flex align-items-center justify-content-center">
          
      <span class="icon d-flex align-items-center justify-content-center --colored --danger --sm">
              <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24v112c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zm-32 224a32 32 0 1 1 64 0 32 32 0 1 1-64 0z"/></svg>      </span>
      </span>
    
      <span class="f-error__title"></span>
    </span>
    
    </label>
                      <label class="f-checkbox d-inline-flex gap-1 u-posr  align-items-center  --checkbox   gap-2 u-fw-600 mb-2">
      <input class="f-checkbox__input u-posa" type="checkbox" id="--Lansky" value="Lansky">
      <span class="f-checkbox__visual flex-shrink-0 d-flex align-items-center justify-content-center">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.522 4 14 5.5 7.901 11.51a2.107 2.107 0 0 1-2.972-.005L2 8.664l1.467-1.513 2.94 2.85L12.522 4Z"/></svg>  </span>
      <div class="f-checkbox__body d-flex column-gap-1 align-items-center">
        <span class="f-checkbox__title">
                        
              </span>
    
        
          </div>
    
      <span class="f-error u-fz-sm gap-1 d-none">
      <span class="f-error__icon d-flex align-items-center justify-content-center">
          
      <span class="icon d-flex align-items-center justify-content-center --colored --danger --sm">
              <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24v112c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zm-32 224a32 32 0 1 1 64 0 32 32 0 1 1-64 0z"/></svg>      </span>
      </span>
    
      <span class="f-error__title"></span>
    </span>
    
    </label>
                        <label class="f-checkbox d-inline-flex gap-1 u-posr  align-items-center  --checkbox   gap-2 u-fw-600 mb-2">
      <input class="f-checkbox__input u-posa" type="checkbox" id="--127mm" value="127mm" checked="checked">
      <span class="f-checkbox__visual flex-shrink-0 d-flex align-items-center justify-content-center">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.522 4 14 5.5 7.901 11.51a2.107 2.107 0 0 1-2.972-.005L2 8.664l1.467-1.513 2.94 2.85L12.522 4Z"/></svg>  </span>
      <div class="f-checkbox__body d-flex column-gap-1 align-items-center">
        <span class="f-checkbox__title">
                        
              </span>
    
        
          </div>
    
      <span class="f-error u-fz-sm gap-1 d-none">
      <span class="f-error__icon d-flex align-items-center justify-content-center">
          
      <span class="icon d-flex align-items-center justify-content-center --colored --danger --sm">
              <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24v112c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zm-32 224a32 32 0 1 1 64 0 32 32 0 1 1-64 0z"/></svg>      </span>
      </span>
    
      <span class="f-error__title"></span>
    </span>
    
    </label>
                      <label class="f-checkbox d-inline-flex gap-1 u-posr  align-items-center  --checkbox   gap-2 u-fw-600 mb-2">
      <input class="f-checkbox__input u-posa" type="checkbox" id="--param-1" value="param-1">
      <span class="f-checkbox__visual flex-shrink-0 d-flex align-items-center justify-content-center">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.522 4 14 5.5 7.901 11.51a2.107 2.107 0 0 1-2.972-.005L2 8.664l1.467-1.513 2.94 2.85L12.522 4Z"/></svg>  </span>
      <div class="f-checkbox__body d-flex column-gap-1 align-items-center">
        <span class="f-checkbox__title">
                        
              </span>
    
        
          </div>
    
      <span class="f-error u-fz-sm gap-1 d-none">
      <span class="f-error__icon d-flex align-items-center justify-content-center">
          
      <span class="icon d-flex align-items-center justify-content-center --colored --danger --sm">
              <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24v112c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zm-32 224a32 32 0 1 1 64 0 32 32 0 1 1-64 0z"/></svg>      </span>
      </span>
    
      <span class="f-error__title"></span>
    </span>
    
    </label>
                      <label class="f-checkbox d-inline-flex gap-1 u-posr  align-items-center  --checkbox   gap-2 u-fw-600 mb-2">
      <input class="f-checkbox__input u-posa" type="checkbox" id="--param-2" value="param-2">
      <span class="f-checkbox__visual flex-shrink-0 d-flex align-items-center justify-content-center">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.522 4 14 5.5 7.901 11.51a2.107 2.107 0 0 1-2.972-.005L2 8.664l1.467-1.513 2.94 2.85L12.522 4Z"/></svg>  </span>
      <div class="f-checkbox__body d-flex column-gap-1 align-items-center">
        <span class="f-checkbox__title">
                        
              </span>
    
        
          </div>
    
      <span class="f-error u-fz-sm gap-1 d-none">
      <span class="f-error__icon d-flex align-items-center justify-content-center">
          
      <span class="icon d-flex align-items-center justify-content-center --colored --danger --sm">
              <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24v112c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zm-32 224a32 32 0 1 1 64 0 32 32 0 1 1-64 0z"/></svg>      </span>
      </span>
    
      <span class="f-error__title"></span>
    </span>
    
    </label>
                      <label class="f-checkbox d-inline-flex gap-1 u-posr  align-items-center  --checkbox   gap-2 u-fw-600 mb-2">
      <input class="f-checkbox__input u-posa" type="checkbox" id="--param-3" value="param-3">
      <span class="f-checkbox__visual flex-shrink-0 d-flex align-items-center justify-content-center">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.522 4 14 5.5 7.901 11.51a2.107 2.107 0 0 1-2.972-.005L2 8.664l1.467-1.513 2.94 2.85L12.522 4Z"/></svg>  </span>
      <div class="f-checkbox__body d-flex column-gap-1 align-items-center">
        <span class="f-checkbox__title">
                        
              </span>
    
        
          </div>
    
      <span class="f-error u-fz-sm gap-1 d-none">
      <span class="f-error__icon d-flex align-items-center justify-content-center">
          
      <span class="icon d-flex align-items-center justify-content-center --colored --danger --sm">
              <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24v112c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zm-32 224a32 32 0 1 1 64 0 32 32 0 1 1-64 0z"/></svg>      </span>
      </span>
    
      <span class="f-error__title"></span>
    </span>
    
    </label>
                      <label class="f-checkbox d-inline-flex gap-1 u-posr  align-items-center  --checkbox   gap-2 u-fw-600 mb-2">
      <input class="f-checkbox__input u-posa" type="checkbox" id="--param-4" value="param-4">
      <span class="f-checkbox__visual flex-shrink-0 d-flex align-items-center justify-content-center">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.522 4 14 5.5 7.901 11.51a2.107 2.107 0 0 1-2.972-.005L2 8.664l1.467-1.513 2.94 2.85L12.522 4Z"/></svg>  </span>
      <div class="f-checkbox__body d-flex column-gap-1 align-items-center">
        <span class="f-checkbox__title">
                        
              </span>
    
        
          </div>
    
      <span class="f-error u-fz-sm gap-1 d-none">
      <span class="f-error__icon d-flex align-items-center justify-content-center">
          
      <span class="icon d-flex align-items-center justify-content-center --colored --danger --sm">
              <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24v112c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zm-32 224a32 32 0 1 1 64 0 32 32 0 1 1-64 0z"/></svg>      </span>
      </span>
    
      <span class="f-error__title"></span>
    </span>
    
    </label>
                      <label class="f-checkbox d-inline-flex gap-1 u-posr  align-items-center  --checkbox   gap-2 u-fw-600 mb-2">
      <input class="f-checkbox__input u-posa" type="checkbox" id="--param-5" value="param-5">
      <span class="f-checkbox__visual flex-shrink-0 d-flex align-items-center justify-content-center">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.522 4 14 5.5 7.901 11.51a2.107 2.107 0 0 1-2.972-.005L2 8.664l1.467-1.513 2.94 2.85L12.522 4Z"/></svg>  </span>
      <div class="f-checkbox__body d-flex column-gap-1 align-items-center">
        <span class="f-checkbox__title">
                        
              </span>
    
        
          </div>
    
      <span class="f-error u-fz-sm gap-1 d-none">
      <span class="f-error__icon d-flex align-items-center justify-content-center">
          
      <span class="icon d-flex align-items-center justify-content-center --colored --danger --sm">
              <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24v112c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zm-32 224a32 32 0 1 1 64 0 32 32 0 1 1-64 0z"/></svg>      </span>
      </span>
    
      <span class="f-error__title"></span>
    </span>
    
    </label>
                  </div>
    
        </div>
      </div>
    
    </div>