pub struct Props {
pub label: String,
pub variant: Variant,
pub size: Size,
pub disabled: bool,
pub button_type: &'static str,
pub leading_icon: Option<Markup>,
pub aria_label: Option<String>,
}Fields§
§label: String§variant: Variant§size: Size§disabled: bool§leading_icon: Option<Markup>Optional leading icon (SVG markup). Use stroke="currentColor" so it
inherits the button’s text color — emoji characters do NOT inherit
color and will render in OS system colors.
aria_label: Option<String>aria-label override. Required for icon-only buttons (where label is
empty) so screen readers announce the button’s purpose.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Props
impl RefUnwindSafe for Props
impl Send for Props
impl Sync for Props
impl Unpin for Props
impl UnsafeUnpin for Props
impl UnwindSafe for Props
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