Struct thaw::BadgeProps
source · pub struct BadgeProps {
pub value: MaybeSignal<u32>,
pub max: MaybeSignal<u32>,
pub variant: MaybeSignal<BadgeVariant>,
pub dot: MaybeSignal<bool>,
pub class: MaybeSignal<String>,
pub children: Children,
}Expand description
Props for the Badge component.
§Required Props
- children:
Children
§Optional Props
- value:
impl Into<MaybeSignal<u32>> - max:
impl Into<MaybeSignal<u32>> - variant:
impl Into<MaybeSignal<BadgeVariant>> - dot:
impl Into<MaybeSignal<bool>> - class:
impl Into<MaybeSignal<String>>
Fields§
§value: MaybeSignal<u32>§max: MaybeSignal<u32>§variant: MaybeSignal<BadgeVariant>§dot: MaybeSignal<bool>§class: MaybeSignal<String>§children: ChildrenImplementations§
source§impl BadgeProps
impl BadgeProps
sourcepub fn builder() -> BadgePropsBuilder<((), (), (), (), (), ())>
pub fn builder() -> BadgePropsBuilder<((), (), (), (), (), ())>
Create a builder for building BadgeProps.
On the builder, call .value(...)(optional), .max(...)(optional), .variant(...)(optional), .dot(...)(optional), .class(...)(optional), .children(...) to set the values of the fields.
Finally, call .build() to create the instance of BadgeProps.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BadgeProps
impl !Send for BadgeProps
impl !Sync for BadgeProps
impl Unpin for BadgeProps
impl !UnwindSafe for BadgeProps
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