react-bootstrap-dialog icon indicating copy to clipboard operation
react-bootstrap-dialog copied to clipboard

html fromat content

Open jerome-diver opened this issue 5 years ago • 2 comments

The first image show a content with an icon and a link. So i think it should be possible to put a html or markdown content inside, but text entry format is a string. How to input a html or markdown or any other content inside the dialog box ?

jerome-diver avatar Aug 11 '20 14:08 jerome-diver

I wonder that this would be you need.

Code: https://github.com/akiroom/react-bootstrap-dialog/blob/master/stories/stories/ShowCustomDialog.js#L13-L18 Demo: https://akiroom.github.io/react-bootstrap-dialog/?path=/story/dialog--custom-dialog

akiroom avatar Aug 11 '20 15:08 akiroom

@akiroom yes something like that, but more simple. I actually use "sweetalert2" library who is very simple to use. I think it can have a props as "html" to be able to get html content the easy way. (this is an idea)

jerome-diver avatar Aug 12 '20 09:08 jerome-diver