Experiments around modal overlays in re-frame based on benhowell/re-frame-modal
Basic re-frame recipe for creating modal/dialog/overlay panels. This implementation is pure re-frame and css, free from jQuery and DOM manipulation and can be used as a drop-in replacement for Bootstrap modals.
You can use Bootstrap CSS to style the modal overlays. This repo shows using
bootstrap for the overlay that is displayed (modal-play.modal/hello-bootstrap
)
- Clone repo to your local filesystem and
cd
into the repo npm install
(only need to do first time)shadow-cljs watch app
- Open your browser to http://localhost:8080/
- Click on the
Open Modal
button and the modal box should show up
MIT License
Copyright (c)2020 Robert J. Berger