euv-ui 0.34.1

Reusable UI component library for the euv framework, providing buttons, cards, modals, inputs, and more.
Documentation
1
2
3
4
5
6
7
8
9
use super::*;

/// The teardown a browser-backed hook runs when its component unmounts.
///
/// The slot holds the closure that takes the hook's browser
/// subscriptions back off the DOM. It is a cell because the teardown
/// is registered once, on the first render, and run once, when the
/// component goes away.
pub(crate) type Teardown = Rc<RefCell<Option<Box<dyn Fn()>>>>;