diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
