Search
Embed a network search experience directly on your platform
Example
Example
Brand colors and CTA callback follow your global app settings
Pre-requisites
Initiate the JS SDK
Copy the snippet below and add it within the <head>
tag The unique user identifier should be unique - such as an email, or an internal ID. This is required for you to later on be able to cancel users from being added to your upcoming bill.
To explore the product without syncing a real account, you can use the demo_pk_global
key. This reduces onboarding friction and allows you to evaluate key features faster. When ready for production, replace it with your real VILLAGE_PUBLIC_KEY
.
Embed the search module
Add village-module="search"
module attribute to any html element, and Village automatically adds search and browse capabilities.
Will my element get replaced?
Will my element get replaced?
No, the element with village-module=“search”
will act as the container. It won’t be replaced.
What elements are supported?
What elements are supported?
We recommend using a div
as the container. For best results, set its width to 100% of the viewport and its height to 100% of the viewport height.