mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 00:59:22 -05:00
removed storage feature from use_color_mode docs
This commit is contained in:
parent
a497969045
commit
710419404c
1 changed files with 0 additions and 6 deletions
|
@ -240,7 +240,6 @@ where
|
||||||
|
|
||||||
/// Color modes
|
/// Color modes
|
||||||
#[derive(Clone, Default, PartialEq, Eq, Hash, Debug)]
|
#[derive(Clone, Default, PartialEq, Eq, Hash, Debug)]
|
||||||
#[cfg_attr(feature = "storage", derive(Serialize, Deserialize))]
|
|
||||||
pub enum ColorMode {
|
pub enum ColorMode {
|
||||||
#[default]
|
#[default]
|
||||||
Auto,
|
Auto,
|
||||||
|
@ -343,24 +342,20 @@ where
|
||||||
on_changed: OnChangedFn,
|
on_changed: OnChangedFn,
|
||||||
|
|
||||||
/// When provided, `useStorage` will be skipped.
|
/// When provided, `useStorage` will be skipped.
|
||||||
/// Storage requires the *create feature* **`storage`** to be enabled.
|
|
||||||
/// Defaults to `None`.
|
/// Defaults to `None`.
|
||||||
#[builder(into)]
|
#[builder(into)]
|
||||||
storage_signal: Option<RwSignal<ColorMode>>,
|
storage_signal: Option<RwSignal<ColorMode>>,
|
||||||
|
|
||||||
/// Key to persist the data into localStorage/sessionStorage.
|
/// Key to persist the data into localStorage/sessionStorage.
|
||||||
/// Storage requires the *create feature* **`storage`** to be enabled.
|
|
||||||
/// Defaults to `"leptos-use-color-scheme"`.
|
/// Defaults to `"leptos-use-color-scheme"`.
|
||||||
#[builder(into)]
|
#[builder(into)]
|
||||||
storage_key: String,
|
storage_key: String,
|
||||||
|
|
||||||
/// Storage type, can be `Local` or `Session` or custom.
|
/// Storage type, can be `Local` or `Session` or custom.
|
||||||
/// Storage requires the *create feature* **`storage`** to be enabled.
|
|
||||||
/// Defaults to `Local`.
|
/// Defaults to `Local`.
|
||||||
storage: StorageType,
|
storage: StorageType,
|
||||||
|
|
||||||
/// If the color mode should be persisted. If `true` this required the
|
/// If the color mode should be persisted. If `true` this required the
|
||||||
/// *create feature* **`storage`** to be enabled.
|
|
||||||
/// Defaults to `true`.
|
/// Defaults to `true`.
|
||||||
storage_enabled: bool,
|
storage_enabled: bool,
|
||||||
|
|
||||||
|
@ -376,7 +371,6 @@ where
|
||||||
transition_enabled: bool,
|
transition_enabled: bool,
|
||||||
|
|
||||||
/// Listen to changes to this storage key from somewhere else.
|
/// Listen to changes to this storage key from somewhere else.
|
||||||
/// Storage requires the *create feature* **`storage`** to be enabled.
|
|
||||||
/// Defaults to true.
|
/// Defaults to true.
|
||||||
listen_to_storage_changes: bool,
|
listen_to_storage_changes: bool,
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue