pub struct ThemeInitScriptProps {
pub default_dark: bool,
}Expand description
Renders in the <head> of every layout, before the stylesheet link.
default_dark is the server’s build-time preference, used only when the visitor has no stored
choice.
<head>
theme_init_script(default_dark)
<link rel="stylesheet" href=(tailwind::stylesheet!())>
</head>Fields§
§default_dark: boolImplementations§
Source§impl ThemeInitScriptProps
impl ThemeInitScriptProps
Sourcepub fn builder() -> ThemeInitScriptPropsBuilder<default_dark>
pub fn builder() -> ThemeInitScriptPropsBuilder<default_dark>
Returns a ThemeInitScriptPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThemeInitScriptProps
impl RefUnwindSafe for ThemeInitScriptProps
impl Send for ThemeInitScriptProps
impl Sync for ThemeInitScriptProps
impl Unpin for ThemeInitScriptProps
impl UnsafeUnpin for ThemeInitScriptProps
impl UnwindSafe for ThemeInitScriptProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more