pub struct HashedStylesheetProps {
pub options: LeptosOptions,
pub id: Option<String>,
pub root: Option<String>,
}
Expand description
Props for the HashedStylesheet
component.
Injects an HTMLLinkElement
into the document head that loads a cargo-leptos
-hashed stylesheet.
§Required Props
- options:
LeptosOptions
- Leptos options
§Optional Props
- id:
impl Into<String>
- An ID for the stylesheet.
- root:
impl Into<String>
- A base url, not including a trailing slash
Fields§
§options: LeptosOptions
Leptos options
id: Option<String>
An ID for the stylesheet.
root: Option<String>
A base url, not including a trailing slash
Implementations§
Source§impl HashedStylesheetProps
impl HashedStylesheetProps
Sourcepub fn builder() -> HashedStylesheetPropsBuilder<((), (), ())>
pub fn builder() -> HashedStylesheetPropsBuilder<((), (), ())>
Create a builder for building HashedStylesheetProps
.
On the builder, call .options(...)
, .id(...)
(optional), .root(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of HashedStylesheetProps
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HashedStylesheetProps
impl RefUnwindSafe for HashedStylesheetProps
impl Send for HashedStylesheetProps
impl Sync for HashedStylesheetProps
impl Unpin for HashedStylesheetProps
impl UnwindSafe for HashedStylesheetProps
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.