review-feedback

Default

  • Pomohlo vám toto hodnocení?

  •         {% include "@Components/review-feedback/review-feedback.twig" with {
      props : {
        title: "Pomohlo vám toto hodnocení?",
        options: [{
          title: "Ano",
          variant:"positive",
          state: "voted",
          count: "12"
          }, {
          title: "Ne",
          variant:"negative",
          count: "3"
        }]
      }
    }
    %}
    
          
  •           <div class="review-feedback">
      <h4>Pomohlo vám toto hodnocení?</h4>
      <div class="review-feedback__wrapper">
                <div class="feedback__wrapper">
      <a class="feedback --positive --voted" href='#'>
        <span class="feedback__title">Ano</span>
        <span class="icon">
          <img src="images/svg/like.svg"  loading="lazy">
      
      </span>
      </a>
      <span class="feedback__count">12</span>
    </div>
                <div class="feedback__wrapper">
      <a class="feedback --negative" href='#'>
        <span class="feedback__title">Ne</span>
        <span class="icon">
          <img src="images/svg/dislike.svg"  loading="lazy">
      
      </span>
      </a>
      <span class="feedback__count">3</span>
    </div>
          </div>
    </div>
    
            

Schema

    {
  "props": {
    "title": {
      "type": "string",
      "description": "Title of the component"
    },
    "options":{
      "type": "array of objects",
      "description": "All props are documented by the component `feedback`."
    }
  }
}