leptos_use_element_hover/options.rs
1use default_struct_builder::DefaultBuilder;
2
3/// Options for [`use_element_hover_with_options`](crate::use_element_hover_with_options).
4#[derive(DefaultBuilder, Default)]
5pub struct UseElementHoverOptions {
6 /// The time in ms the mouse has to be hovered over the element before the signal is changed to `true`. Defaults to `0`.
7 pub(crate) delay_enter: u64,
8
9 /// The time in ms after the mouse has left the element before the signal is changed to `false`. Defaults to `0`.
10 pub(crate) delay_leave: u64,
11}