You are here

input.html.twig in Drupal 10

Default theme implementation for an 'input' #type form element.

Available variables:

  • attributes: A list of HTML attributes for the input element.
  • children: Optional additional rendered elements.

File

core/modules/system/templates/input.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for an 'input' #type form element.
  5. *
  6. * Available variables:
  7. * - attributes: A list of HTML attributes for the input element.
  8. * - children: Optional additional rendered elements.
  9. *
  10. * @see template_preprocess_input()
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <input{{ attributes }} />{{ children }}

Related topics