//! Signal-managed version of the dialog component using leptos-shadcn-signal-management use leptos::prelude::*; use leptos_style::Style; use leptos_shadcn_signal_management::*; /// Signal-managed dialog state #[derive(Debug, Clone, PartialEq)] pub struct SignalManagedDialogState { pub is_active: bool, pub is_hovered: bool, pub is_focused: bool, pub click_count: u32, } impl Default for SignalManagedDialogState { fn default() -> Self { Self { is_active: false, is_hovered: false, is_focused: false, click_count: 0, } } } /// Signal-managed dialog component #[component] pub fn SignalManagedDialog( #[prop(into, optional)] class: MaybeProp, #[prop(into, optional)] id: MaybeProp, #[prop(into, optional)] style: Signal