pub struct HelperTextProperties {
pub aria_label: Option<AttrValue>,
pub children: ChildrenWithProps<HelperTextItem>,
pub class: Classes,
pub component: HelperTextComponent,
pub id: Option<AttrValue>,
pub live_region: bool,
pub hidden: bool,
}
Fields§
§aria_label: Option<AttrValue>
Adds an accessible label to the helper text when component
is HelperTextComponent::Ul
.
children: ChildrenWithProps<HelperTextItem>
Content to be rendered inside the HelperText
container. This must be a HelperTextItem
component.
class: Classes
Additional classes to be applied to the HelperText
container.
component: HelperTextComponent
Specify the html element of the HelperText
container. Defaults to using a div
.
id: Option<AttrValue>
id for the helper text container. The value of this prop can be passed into a form
component’s aria-describedby
property when you intend for all helper text items to be
announced to assistive technologies.
live_region: bool
Flag for indicating whether the helper text container is a live region. Use this prop when
you expect or intend for any HelperTextItem
within the container to be dynamically updated.
Hides the HelperText
Trait Implementations§
source§impl Clone for HelperTextProperties
impl Clone for HelperTextProperties
source§fn clone(&self) -> HelperTextProperties
fn clone(&self) -> HelperTextProperties
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HelperTextProperties
impl Debug for HelperTextProperties
source§impl PartialEq for HelperTextProperties
impl PartialEq for HelperTextProperties
source§fn eq(&self, other: &HelperTextProperties) -> bool
fn eq(&self, other: &HelperTextProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Properties for HelperTextProperties
impl Properties for HelperTextProperties
impl StructuralPartialEq for HelperTextProperties
Auto Trait Implementations§
impl Freeze for HelperTextProperties
impl !RefUnwindSafe for HelperTextProperties
impl !Send for HelperTextProperties
impl !Sync for HelperTextProperties
impl Unpin for HelperTextProperties
impl !UnwindSafe for HelperTextProperties
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> 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.