Skip to main content

tooltip

Function tooltip 

Source
pub fn tooltip(p: &TooltipProps) -> String
Expand description

Returns the canonical CSS class string for a tooltip trigger wrapper.

Upstream basecoat implements tooltips via CSS using data-tooltip and data-side attributes on the trigger element — no dedicated CSS class. This function returns the extra class if provided, otherwise empty string.