1.6.1 • Published 6 months ago

jb-modal v1.6.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

jb-modal

modal web component with features:

  • customizable content
  • support typescript
  • auto close on background click
  • you can add custom route history in browser so back button can close modal and refresh (when modal is open) is open modal again

Demo & Sample
in github: https://javadbat.github.io/jb-modal/

install

npm i jb-modal

usage

<jb-modal is-open="true">
    <div slot="content">modal content</div>
</jb-modal>

auto close on background click

document.querySelector('jb-modal').config.autoCloseOnBackgroundClick = true;

customize modal look

you can customize modal look by following css properties | css variable name | description | | ------------- | ------------- | | --jb-modal-bg-color | modal content background color default is black #fff | | --jb-modal-back-bg-color | modal back background color | | --jb-modal-border-radius | modal border-radius default 24px | | --jb-modal-border-radius-mobile | modal border-radius on mobile default is 24px 24px 0 0 |

1.6.1

6 months ago

1.6.0

6 months ago

1.5.5

9 months ago

1.5.4

9 months ago

1.5.3

11 months ago

1.5.2

11 months ago

1.5.1

11 months ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago