calling openConfirmPanel opens a new panel with the close and confirm buttons in the header, places title on the left in the header, and content below the header. It's possible to close the panel within the content by passing closePanel.
Bonus: think about wether this API can be used to stack more than 1 panel on top of the main content. The idea being that we can render in the content property another StackedPanel, it will slide over the entire panel again, not just the "content" part of it. I think this requires to add a react context so that it is the same stack of panels (as in blueprint's component's stack property) that is edited.
API suggestion (if this one does not work let me know)
calling
openConfirmPanel
opens a new panel with the close and confirm buttons in the header, placestitle
on the left in the header, and content below the header. It's possible to close the panel within the content by passingclosePanel
.Bonus: think about wether this API can be used to stack more than 1 panel on top of the main content. The idea being that we can render in the
content
property anotherStackedPanel
, it will slide over the entire panel again, not just the "content" part of it. I think this requires to add a react context so that it is the same stack of panels (as in blueprint's component'sstack
property) that is edited.