pub struct FutureCssProps {
pub design: Option<Design>,
pub palette: Option<Palette>,
pub theme: Theme,
pub brand: Option<Brand>,
pub direction: Option<Direction>,
pub stylesheets: Stylesheets,
pub children: Element,
}Expand description
Props for the root theme and CSS provider.
Fields§
§design: Option<Design>Optional stock visual preset; absence inherits the surrounding design.
palette: Option<Palette>Optional color palette. When omitted, a set design applies its own paired
palette, and with neither the surrounding palette is inherited.
theme: ThemeScheme, inherited when omitted.
brand: Option<Brand>Optional upstream brand.
direction: Option<Direction>Inline direction, inherited when omitted.
stylesheets: StylesheetsSet to external if the app already loads the CSS bundle.
children: ElementThe application’s component tree.
Implementations§
Source§impl FutureCssProps
impl FutureCssProps
Sourcepub fn builder() -> FutureCssPropsBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> FutureCssPropsBuilder<((), (), (), (), (), (), ())>
Create a builder for building FutureCssProps.
On the builder, call .design(...)(optional), .palette(...)(optional), .theme(...)(optional), .brand(...)(optional), .direction(...)(optional), .stylesheets(...)(optional), .children(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of FutureCssProps.