Tooltip

A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.

Positioning

Tooltips can be positioned.

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage::*;

#[component]
pub fn TooltipAnatomy() -> impl IntoView {
    view! { <Tooltip /> }
}

API Reference

tooltip

The tooltip.

Custom Attributes
NameTypeDefaultDescription
alignString"center"

Sets where the tooltip is rendered along the chosen side.

sideString"top"

Sets which side of the triggering element that the tooltip will spawn from.

Implements global attributes.