pub struct NavTabProps {
pub classes: Classes,
pub active: bool,
pub disabled: bool,
pub id: Option<&'static str>,
pub panel_id: Option<&'static str>,
pub children: Children,
pub onclick: Option<Callback<MouseEvent>>,
}Expand description
Properties for the NavTab component.
| Prop | Type | Default | Description |
|---|---|---|---|
active | bool | — | Whether this tab is selected (required) |
disabled | bool | false | Whether this tab is disabled |
id | Option<&'static str> | None | Tab button id |
panel_id | Option<&'static str> | None | aria-controls target |
onclick | Option<Callback<MouseEvent>> | — | Click handler (required) |
classes | Classes | — | Additional CSS classes |
children | Children | — | Tab content |
Fields§
§classes: ClassesAdditional CSS classes applied to the tab.
active: boolWhether this tab is currently selected.
disabled: boolWhether this tab is disabled.
id: Option<&'static str>Optional id attribute for the tab button.
panel_id: Option<&'static str>Optional aria-controls referencing the associated panel id.
children: ChildrenContent rendered inside the tab button.
onclick: Option<Callback<MouseEvent>>Click handler invoked when the tab is selected.
Trait Implementations§
Source§fn clone(&self) -> NavTabProps
fn clone(&self) -> NavTabProps
Returns a duplicate 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 moreAuto Trait Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.