pub struct ControlProps {Show 16 fields
pub children: Children,
pub class: &'static str,
pub style: &'static str,
pub id: &'static str,
pub input_id: &'static str,
pub disabled: bool,
pub error: bool,
pub focused: bool,
pub full_width: bool,
pub hidden_label: bool,
pub margin: Margin,
pub required: bool,
pub size: Size,
pub variant: Variant,
pub color: Color,
pub data_testid: &'static str,
}Available on crate feature
yew only.Expand description
Props for the Control Yew component.
Fieldsยง
ยงchildren: Childrenยงclass: &'static strAdditional CSS class names on the wrapper <div>.
style: &'static strInline CSS on the wrapper <div>.
id: &'static strid attribute on the wrapper <div>.
input_id: &'static strThe id of the inner <input> element; links <label> via for.
disabled: boolWhen true, renders the label, input, and helper text in a disabled state.
error: boolWhen true, renders the label and helper text in the error color.
focused: boolWhen true, applies the focused style. Use for controlled focus.
full_width: boolWhen true, the component takes up the full width of its container.
When true, the label is hidden (useful with aria-label on the input).
margin: MarginVertical spacing adjustment.
required: boolWhether the field is required.
size: SizeSize of the component.
variant: VariantVisual style variant.
color: ColorColor theme applied to the label and focused/active field.
data_testid: &'static strdata-testid for automated testing.
Trait Implementationsยง
Sourceยงimpl Clone for ControlProps
impl Clone for ControlProps
Sourceยงimpl PartialEq for ControlProps
impl PartialEq for ControlProps
Sourceยงimpl Properties for ControlProps
impl Properties for ControlProps
impl StructuralPartialEq for ControlProps
Auto Trait Implementationsยง
impl !RefUnwindSafe for ControlProps
impl !Send for ControlProps
impl !Sync for ControlProps
impl !UnwindSafe for ControlProps
impl Freeze for ControlProps
impl Unpin for ControlProps
impl UnsafeUnpin for ControlProps
Blanket Implementationsยง
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> HasAllProps<(), T> for T
Sourceยงimpl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Sourceยงfn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
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 moreSourceยงimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Sourceยงfn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Sourceยงimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Sourceยงfn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Sourceยงimpl<T> SerializableKey for T
impl<T> SerializableKey for T
Sourceยงimpl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
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.
Sourceยงimpl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Sourceยงfn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Sourceยงimpl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Sourceยงfn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.