feat(button): add ImageButton widget variant

This commit is contained in:
Michael Aaron Murphy 2023-10-30 16:32:10 +01:00 committed by Michael Murphy
parent 470b966e8d
commit 34386561b3
6 changed files with 191 additions and 20 deletions

View file

@ -12,6 +12,10 @@ mod icon;
pub use icon::icon;
pub use icon::Button as IconButton;
mod image;
pub use image::image;
pub use image::Button as ImageButton;
mod style;
pub use style::{Appearance, StyleSheet};
@ -81,7 +85,7 @@ pub struct Builder<'a, Message, Variant> {
/// Sets the preferred font weight.
font_weight: Weight,
// The preferred style of the button.
/// The preferred style of the button.
style: Style,
#[setters(skip)]