pub struct NovaFormWrapperProps {
pub logo: String,
pub title: TextProp,
pub subtitle: Option<TextProp>,
pub footer: Option<Children>,
pub children: Children,
}
Expand description
Props for the NovaFormWrapper
component.
A container for a form. Adds a header with a logo, title, and subtitle, as well as a footer with the title.
§Required Props
- logo:
impl Into<String>
- The URL of the logo to display in the header.
- title:
impl Into<TextProp>
- The title to display in the header and footer.
- children:
Children
- The nova form goes here.
§Optional Props
- subtitle:
impl Into<TextProp>
- The subtitle to display in the header.
- footer:
impl Into<Children>
- The footer to display at the bottom of the form. By default, there is no footer.
Fields§
§logo: String
The URL of the logo to display in the header.
title: TextProp
The title to display in the header and footer.
subtitle: Option<TextProp>
The subtitle to display in the header.
The footer to display at the bottom of the form. By default, there is no footer.
children: Children
The nova form goes here.
Implementations§
Source§impl NovaFormWrapperProps
impl NovaFormWrapperProps
Sourcepub fn builder() -> NovaFormWrapperPropsBuilder<((), (), (), (), ())>
pub fn builder() -> NovaFormWrapperPropsBuilder<((), (), (), (), ())>
Create a builder for building NovaFormWrapperProps
.
On the builder, call .logo(...)
, .title(...)
, .subtitle(...)
(optional), .footer(...)
(optional), .children(...)
to set the values of the fields.
Finally, call .build()
to create the instance of NovaFormWrapperProps
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NovaFormWrapperProps
impl !RefUnwindSafe for NovaFormWrapperProps
impl !Send for NovaFormWrapperProps
impl !Sync for NovaFormWrapperProps
impl Unpin for NovaFormWrapperProps
impl !UnwindSafe for NovaFormWrapperProps
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> 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 more