Tooltip

Floating element that provides a control with contextual information via pointer or focus.

use radix_yew_icons::PlusIcon;
use radix_yew_themes::{IconButton, Radius, Tooltip};
use yew::prelude::*;

#[function_component]
pub fn TooltipExample() -> Html {
    html! {
        <Tooltip content="Add to library">
            <IconButton radius={Radius::Full}>
                <PlusIcon />
            </IconButton>
        </Tooltip>
    }
}

API Reference

This component inherits and merges props from the Radix Tooltip primitive Root, Portal and Content parts. It supports common margin props.

PropTypeDefault
contentHtml-
widthOption<Responsive<String>>-
min_widthOption<Responsive<String>>-
max_widthResponsive<String>360p

See Also