Function freya_components::Tooltip

source ·
pub fn Tooltip(_: TooltipProps) -> Element
Expand description

Tooltip component. Use in combination with TooltipContainer().

§Styling

Inherits the TooltipTheme

§Example

fn app() -> Element {
    rsx!(
        TooltipContainer {
            tooltip: rsx!(
                Tooltip {
                    text: "Hey!"
                }
            ),
            label { "Hover me!" }
       }
    )
}

§Preview

Tooltip Preview