Settings

Theme

Show HN: NanoModal – a tiny accessible modal library

muffinman.io

1 points by stanko 3 months ago · 0 comments · 1 min read

Reader

Hey HN,

I love using native web elements, but with <dialog> there are a bunch of small quirks and cross browser differences. I decided to make a tiny library (850 bytes gzipped) around the dialog element so solve these.

NanoModal is accessible, has animations and it is easy to customize using CSS. I already started using it on my projects.

Please let me know what you think and if you find any issues with it, thank you!

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection