Skip to content

A search popup custom web component, built with preact.

License

Notifications You must be signed in to change notification settings

fliegwerk/search-popup

Repository files navigation

Welcome to search-popup 👋

License: MIT Twitter: pklaschka2000

A search popup custom web component, built with preact.

Install

<script src="https://cdn.jsdelivr.net/gh/fliegwerk/search-popup/dist/bundle.js" />
</script>

Usage

<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 with scroll-behavior: smooth on Chrome browsers.

Author

👤 Pablo Klaschka

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 Pablo Klaschka.

This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator