You are here

uikit-button.html.twig in UIkit Components 8.3

Default theme implementation for a UIkit Button.

Available variables:

  • value: The value of the badge.
  • attributes: HTML attributes to be applied to the badge.

File

templates/components/uikit-button.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a UIkit Button.
  5. *
  6. * Available variables:
  7. * - value: The value of the badge.
  8. * - attributes: HTML attributes to be applied to the badge.
  9. *
  10. * @see \Drupal\uikit_components\Element\UIkitButton
  11. * @see template_preprocess_uikit_button()
  12. * @see https://getuikit.com/docs/button
  13. *
  14. * @ingroup uikit_components_theme_render
  15. */
  16. #}
  17. {% if text %}
  18. <{{ button_type }}{{ attributes }}>{{ text }}</{{ button_type }}>
  19. {% endif %}

Related topics