pub struct NavTabsProps {
pub classes: Classes,
pub role: &'static str,
pub id: Option<&'static str>,
pub full_width: bool,
pub children: Children,
}Expand description
Properties for the NavTabs component.
| Prop | Type | Default | Description |
|---|---|---|---|
full_width | bool | false | Stretch tabs to fill width |
role | &'static str | "tablist" | ARIA role |
id | Option<&'static str> | None | Container id |
classes | Classes | — | Additional CSS classes |
children | Children | — | Tab items |
Fields§
§classes: ClassesAdditional CSS classes applied to the tabs container.
role: &'static strARIA role for the tab list. Defaults to "tablist".
id: Option<&'static str>Optional id attribute for the tabs container.
full_width: boolWhether tabs should stretch to fill the full width of the container.
children: ChildrenTab items rendered inside the container.
Trait Implementations§
Source§fn clone(&self) -> NavTabsProps
fn clone(&self) -> NavTabsProps
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.