Function thaw_components::Binder

source ·
pub fn Binder<E>(props: BinderProps<E>) -> impl IntoView
where E: ElementType + 'static, E::Output: JsCast + Clone + Deref<Target = HtmlElement> + 'static,
Expand description

§Tracking popup

use crate::components::{Binder, Follower, FollowerPlacement};
use leptos::*;

let div_ref= NodeRef::new();
let show = RwSignal::new(false);

view! {
    <Binder target_ref=div_ref>
       <div ref=div_ref>
           "content"
       </div>
       <Follower slot show placement=FollowerPlacement::BottomStart>
          "content2"
       </Follower>
    </Binder>
}

§Required Props