{% comment %} tooltip A tooltip Parameters: - title (string): The title of the tooltip - text (string): The text content of the tooltip - position (string): The position of the tooltip (top, bottom, left, right) Slots: - default: The content that triggers the tooltip {% endcomment %}
{% if position == "top" %} {% elif position == "bottom" %} {% elif position == "left" %} {% elif position == "right" %} {% else %} {% endif %}
{{ slot }}