pub struct HeroProps {
pub classes: Classes,
pub head: Option<Html>,
pub head_classes: Classes,
pub body: Html,
pub body_classes: Classes,
pub foot: Option<Html>,
pub foot_classes: Classes,
pub fixed_nav: bool,
pub bold: bool,
pub size: Option<HeroSize>,
}
Fields§
§classes: Classes
Extra classes for the hero container.
head: Option<Html>
The contents of the hero-head section.
head_classes: Classes
Optional classes to add to the hero-head container.
body: Html
The contents of the hero-body section.
body_classes: Classes
Optional classes to add to the hero-body container.
foot: Option<Html>
The contents of the hero-foot section.
foot_classes: Classes
Optional classes to add to the hero-foot container.
If you are using a fixed navbar,
you can use the fixed_nav=true
modifier on the hero for it to occupy the viewport height minus
the navbar height.
https://bulma.io/documentation/layout/hero/#fullheight-with-navbar
bold: bool
Generate a subtle gradient for the hero.
size: Option<HeroSize>
The size for this hero.
Trait Implementations§
source§impl PartialEq<HeroProps> for HeroProps
impl PartialEq<HeroProps> for HeroProps
source§impl Properties for HeroProps
impl Properties for HeroProps
impl StructuralPartialEq for HeroProps
Auto Trait Implementations§
impl !RefUnwindSafe for HeroProps
impl !Send for HeroProps
impl !Sync for HeroProps
impl Unpin for HeroProps
impl !UnwindSafe for HeroProps
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.