
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
ember-micro-modal
Advanced tools
Ember addon for MicroModal modal library.
ember install ember-micro-modal
CSS is not included by default. If you want to apply default styles just include to your app.css like @import 'micro-modal.css' or in scss, less @import 'micro-modal'.
To see default modal html structure.
You can change all global configuration settings via config/environment.js file.
Please check MicroModal site for more configuration details.
ENV['ember-micro-modal'] = {
onShow: (modal) => console.info(`${modal.id} is shown`),
onClose: (modal) => console.info(`${modal.id} is hidden`),
openTrigger: 'data-custom-open',
closeTrigger: 'data-custom-close',
openClass: 'is-open',
disableScroll: true,
disableFocus: false,
awaitOpenAnimation: false,
awaitCloseAnimation: false,
debugMode: true,
};
There are also 2 parameters. @show and @clickToOverlay. @show parameter simply responsible to modal visibility. If value is true modal will be visible. @clickToOverlay parameter is responsible to whether modal overlay clickable or not. If value is true overlay click will close the modal.
<MicroModal
@show={{this.show}}
@onShow={{fn this.onShow}}
@onClose={{fn this.onClose}}
as |modal|
>
<modal.container class='col-6' as |container|>
<container.header class='col'>
<h2 class='modal__title'>
Micromodal
</h2>
<button
type='button'
class='modal__close'
aria-label='Close modal'
data-micromodal-close
></button>
</container.header>
<container.content class='col'>
<p>
Try hitting the
<code>
tab
</code>
key and notice how the focus stays within the modal itself. Also,
<code>
esc
</code>
to close modal.
</p>
</container.content>
<container.footer class='col'>
<button type='button' class='modal__btn modal__btn-primary'>
Continue
</button>
<button
type='button'
class='modal__btn'
aria-label='Close this dialog window'
data-micromodal-close
>
Close
</button>
</container.footer>
</modal.container>
</MicroModal>
<button type='button' {{on 'click' this.showModal}}>
Show
</button>
<MicroModal @show={{this.show}} @onShow={{fn this.onShow}} @onClose={{fn this.onClose}} as |modal|> <modal.container class="col-6" as |container|> <container.header class="col">
Try hitting the
tab
key and notice how the focus stays within the modal itself. Also,
esc
to close modal.
Contributing
See the [Contributing](CONTRIBUTING.md) guide for details.
I'm sorry that i don't have time to write tests. Please report if you find any issue.
Thanks.
## License
This project is licensed under the [MIT License](LICENSE.md).
FAQs
Ember addon for MicroModal modal library.
The npm package ember-micro-modal receives a total of 9 weekly downloads. As such, ember-micro-modal popularity was classified as not popular.
We found that ember-micro-modal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.