aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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