Struct ybc::HeroProps

source ·
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.

§fixed_nav: bool

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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Builder that will be used to construct properties
Entrypoint for building properties

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert self to a value of a Properties struct.
Convert self to a value of a Properties struct.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.