pub struct ComponentPreviewCardProps {
pub title: MaybeProp<&'static str>,
pub description: MaybeProp<&'static str>,
pub code: MaybeProp<&'static str>,
pub example_id: MaybeProp<&'static str>,
pub children: Children,
}Expand description
Props for the ComponentPreviewCard component.
§Required Props
- children:
Children
§Optional Props
- title: [
impl Into<MaybeProp<&'static str>>](MaybeProp<&’static str>) - description: [
impl Into<MaybeProp<&'static str>>](MaybeProp<&’static str>) - code: [
impl Into<MaybeProp<&'static str>>](MaybeProp<&’static str>) - example_id: [
impl Into<MaybeProp<&'static str>>](MaybeProp<&’static str>)
Fields§
§title: MaybeProp<&'static str>§description: MaybeProp<&'static str>§code: MaybeProp<&'static str>§example_id: MaybeProp<&'static str>§children: ChildrenImplementations§
Source§impl ComponentPreviewCardProps
impl ComponentPreviewCardProps
Sourcepub fn builder() -> ComponentPreviewCardPropsBuilder<((), (), (), (), ())>
pub fn builder() -> ComponentPreviewCardPropsBuilder<((), (), (), (), ())>
Create a builder for building ComponentPreviewCardProps.
On the builder, call .title(...)(optional), .description(...)(optional), .code(...)(optional), .example_id(...)(optional), .children(...) to set the values of the fields.
Finally, call .build() to create the instance of ComponentPreviewCardProps.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ComponentPreviewCardProps
impl !Sync for ComponentPreviewCardProps
impl !UnwindSafe for ComponentPreviewCardProps
impl Freeze for ComponentPreviewCardProps
impl Send for ComponentPreviewCardProps
impl Unpin for ComponentPreviewCardProps
impl UnsafeUnpin for ComponentPreviewCardProps
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> SerializableKey for T
impl<T> SerializableKey for T
Source§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.