aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-10-14 09:15:23 +0200
committerPolesznyák Márk <contact@pml68.dev>2025-10-14 09:15:23 +0200
commit06fd88a8c59af0d2d7d435d336fc9dd3e96aebe7 (patch)
tree3a4c81e1d6a24b339c8095546c8e86ad39438287
parentchore: add `documentation` URL to crate manifest (diff)
downloadiced_dialog-06fd88a8c59af0d2d7d435d336fc9dd3e96aebe7.tar.gz
feat: take `IntoFragment` in `button`
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6f105de..d311d14 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -3,6 +3,7 @@ pub mod dialog;
pub use dialog::Dialog;
use iced_widget::Button;
use iced_widget::core;
+use iced_widget::text::IntoFragment;
use iced_widget::{container, text};
/// Creates a new [`Dialog`] with the given base and dialog content.
@@ -25,7 +26,7 @@ where
///
/// [`Button`]: https://docs.iced.rs/iced/widget/struct.Button.html
pub fn button<'a, Message, Theme, Renderer>(
- content: &'a str,
+ content: impl IntoFragment<'a>,
message: Message,
) -> Button<'a, Message, Theme, Renderer>
where