pub struct EuvButtonLinkProps {
pub variant: EuvButtonVariant,
pub size: EuvButtonSize,
pub label: CowText,
pub href: CowText,
pub new_tab: bool,
pub aria_label: Option<CowText>,
}Expand description
Props for the euv_button_link component.
A link that looks like a button: the anchor carries the appearance of the button, because a destination the reader follows is not an action the reader performs and the two want different affordances.
Fields§
§variant: EuvButtonVariantThe visual variant determining colour scheme.
size: EuvButtonSizeThe size of the control.
label: CowTextThe label of the link.
href: CowTextThe destination the link points at.
new_tab: boolWhether the link opens in a new tab.
aria_label: Option<CowText>The accessible name of the link.
The name is the label the link shows unless the caller names one of its own, which a link that carries a glyph rather than a word needs.
Implementations§
Source§impl EuvButtonLinkProps
impl EuvButtonLinkProps
pub fn get_variant(&self) -> &EuvButtonVariant
pub fn get_mut_variant(&mut self) -> &mut EuvButtonVariant
pub fn set_variant(&mut self, val: EuvButtonVariant) -> &mut Self
pub fn get_size(&self) -> &EuvButtonSize
pub fn get_mut_size(&mut self) -> &mut EuvButtonSize
pub fn set_size(&mut self, val: EuvButtonSize) -> &mut Self
pub fn get_label(&self) -> &CowText
pub fn get_mut_label(&mut self) -> &mut CowText
pub fn set_label(&mut self, val: CowText) -> &mut Self
pub fn get_href(&self) -> &CowText
pub fn get_mut_href(&mut self) -> &mut CowText
pub fn set_href(&mut self, val: CowText) -> &mut Self
pub fn get_new_tab(&self) -> bool
pub fn get_mut_new_tab(&mut self) -> &mut bool
pub fn set_new_tab(&mut self, val: bool) -> &mut Self
pub fn get_aria_label(&self) -> CowText
pub fn try_get_aria_label(&self) -> &Option<CowText>
pub fn get_mut_aria_label(&mut self) -> &mut Option<CowText>
pub fn set_aria_label(&mut self, val: Option<CowText>) -> &mut Self
Source§impl EuvButtonLinkProps
impl EuvButtonLinkProps
pub fn new( variant: EuvButtonVariant, size: EuvButtonSize, label: CowText, href: CowText, new_tab: bool, aria_label: Option<CowText>, ) -> Self
Trait Implementations§
Source§impl Clone for EuvButtonLinkProps
impl Clone for EuvButtonLinkProps
Source§impl Debug for EuvButtonLinkProps
impl Debug for EuvButtonLinkProps
Auto Trait Implementations§
impl Forget for EuvButtonLinkProps
impl Freeze for EuvButtonLinkProps
impl Move for EuvButtonLinkProps
impl RefUnwindSafe for EuvButtonLinkProps
impl Send for EuvButtonLinkProps
impl Sync for EuvButtonLinkProps
impl Unpin for EuvButtonLinkProps
impl UnsafeUnpin for EuvButtonLinkProps
impl UnwindSafe for EuvButtonLinkProps
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