textiler-core 0.1.0

Provides the core utilities to get textiler to work
Documentation
1
2
3
4
5
6
7
8
9
use yew::hook;
use crate::context::StyleManagerContext;

/// Use a theme
#[hook]
pub(crate) fn use_style_manager() -> StyleManagerContext {
    let mgr = yew::use_context::<StyleManagerContext>();
    mgr.unwrap_or_default()
}