You are here

elements--pretty-options.html.twig in Pretty Checkbox Radio 8

Theme to overwrite the default radios and checkboxes and convert them to pretty elements.

Available variables

  • attributes: A list of HTML attributes for the wrapper element.
  • children: The rendered element(radios/checkboxes).

File

templates/elements--pretty-options.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme to overwrite the default radios and checkboxes and convert them
  5. * to pretty elements.
  6. *
  7. * Available variables
  8. * - attributes: A list of HTML attributes for the wrapper element.
  9. * - children: The rendered element(radios/checkboxes).
  10. *
  11. * @see template_preprocess_radios()
  12. * @see template_preprocess_checkboxes()
  13. */
  14. #}
  15. <div class="pretty-element">
  16. <input{{ attributes }} />{{ children }}
  17. <label for={{ attributes.id }}>{{ element['#title'] }}</label>
  18. </div>