pub struct theme_init_script;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>Trait Implementations§
Source§impl Component for theme_init_script
impl Component for theme_init_script
Source§type Props<'__props> = ThemeInitScriptProps
type Props<'__props> = ThemeInitScriptProps
The component’s properties. The lifetime covers data borrowed from
the caller.
Source§fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn props_builder<'a>() -> <Self::Props<'a> as Props>::Builder
Auto Trait Implementations§
impl Freeze for theme_init_script
impl RefUnwindSafe for theme_init_script
impl Send for theme_init_script
impl Sync for theme_init_script
impl Unpin for theme_init_script
impl UnsafeUnpin for theme_init_script
impl UnwindSafe for theme_init_script
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