<div class="tooltip tooltip-open" data-tip="hello">
    <img src="https://picsum.photos/192/192" />
</div>
@jrmc.tooltip({ text: 'hello', class: 'tooltip-open' })
  <img src="https://picsum.photos/192/192" />
@end

Tooltip

Doc : daisyui tooltip

Tooltip can be used to show a message when hovering over an element.

Class name Type
tooltip Component Container element
tooltip-open Component Force open tooltip
tooltip-bottom Modifier Put tooltip on bottom
tooltip-left Modifier Put tooltip on left
tooltip-right Modifier Put tooltip on right
tooltip-primary Modifier Adds primary color to tooltip
tooltip-secondary Modifier Adds secondary color to tooltip
tooltip-accent Modifier Adds accent color to tooltip
tooltip-info Modifier Adds info color to tooltip
tooltip-success Modifier Adds success color to tooltip
tooltip-warning Modifier Adds warning color to tooltip
tooltip-error Modifier Adds error color to tooltip