feat(image_button): add optional removable button overlay

This commit is contained in:
Michael Aaron Murphy 2023-11-15 16:09:17 +01:00 committed by Michael Murphy
parent 9f27d2b7f5
commit 2c445d820f
5 changed files with 206 additions and 103 deletions

View file

@ -38,6 +38,13 @@ pub fn button<'a, Message>(
Button::new(content)
}
pub fn custom_image_button<'a, Message>(
content: impl Into<Element<'a, Message>>,
on_remove: Option<Message>,
) -> Button<'a, Message, crate::Renderer> {
Button::new_image(content, on_remove)
}
#[must_use]
#[derive(Setters)]
pub struct Builder<'a, Message, Variant> {