mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -05:00
Remove notice to enable feature storage on use_color_mode
This commit is contained in:
parent
208451f0c2
commit
daab6f944c
1 changed files with 1 additions and 4 deletions
|
@ -13,9 +13,6 @@ use wasm_bindgen::JsCast;
|
|||
|
||||
/// Reactive color mode (dark / light / customs) with auto data persistence.
|
||||
///
|
||||
/// > Data persistence is only enabled when the crate feature **`storage`** is enabled. You
|
||||
/// can use the function without it but the mode won't be persisted.
|
||||
///
|
||||
/// ## Demo
|
||||
///
|
||||
/// [Link to Demo](https://github.com/Synphonyte/leptos-use/tree/main/examples/use_color_mode)
|
||||
|
@ -55,7 +52,7 @@ use wasm_bindgen::JsCast;
|
|||
/// #
|
||||
/// mode.get(); // ColorMode::Dark or ColorMode::Light
|
||||
///
|
||||
/// set_mode.set(ColorMode::Dark); // change to dark mode and persist (with feature `storage`)
|
||||
/// set_mode.set(ColorMode::Dark); // change to dark mode and persist
|
||||
///
|
||||
/// set_mode.set(ColorMode::Auto); // change to auto mode
|
||||
/// #
|
||||
|
|
Loading…
Add table
Reference in a new issue