{% comment %} Tooltip component - tooltip is applied via data attributes, not a wrapper Usage: You should apply tooltip directly to the element, not wrap it. In HTML: With django-cotton, pass attrs to your component: Hover me Available data-side: top (default), bottom, left, right Available data-align: start, center (default), end This component is just a passthrough for convenience but tooltip should really be applied as data attributes on the target element. {% endcomment %} {{ slot }}