A search popup custom web component, built with preact.
<script src="https://cdn.jsdelivr.net/gh/fliegwerk/search-popup/dist/bundle.js" />
</script>
<script>
function search(q) {
// return search results for query q
}
const searchPopup = document.createElement('search-popup');
searchPopup.setAttribute('search', 'search');
document.body.appendChild(searchPopup);
</script>
⚠ INCOMPATIBILITY NOTICE: The
openPage
function used by this library is incompatible withscroll-behavior: smooth
on Chrome browsers.
👤 Pablo Klaschka
- Website: https://github.com/pklaschka
- Twitter: @pklaschka2000
- Github: @pklaschka
- LinkedIn: @pklaschka
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2021 Pablo Klaschka.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator