SearchEntrypoint interface
Stay organized with collections
Save and categorize content based on your preferences.
Google search entry point.
Signature:
export interface SearchEntrypoint
Properties
Property |
Type |
Description |
renderedContent |
string |
HTML/CSS snippet that must be embedded in a web page. The snippet is designed to avoid undesired interaction with the rest of the page's CSS.To ensure proper rendering and prevent CSS conflicts, it is recommended to encapsulate this renderedContent within a shadow DOM when embedding it into a webpage. See MDN: Using shadow DOM. |
SearchEntrypoint.renderedContent
HTML/CSS snippet that must be embedded in a web page. The snippet is designed to avoid undesired interaction with the rest of the page's CSS.
To ensure proper rendering and prevent CSS conflicts, it is recommended to encapsulate this renderedContent
within a shadow DOM when embedding it into a webpage. See MDN: Using shadow DOM.
Signature:
renderedContent?: string;
Example
const container = document.createElement('div');
document.body.appendChild(container);
container.attachShadow({ mode: 'open' }).innerHTML = renderedContent;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-17 UTC.
[null,null,["Last updated 2025-07-17 UTC."],[],[],null,["Google search entry point.\n\n**Signature:** \n\n export interface SearchEntrypoint \n\nProperties\n\n| Property | Type | Description |\n|-----------------------------------------------------------------------------|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [renderedContent](./ai.searchentrypoint.md#searchentrypointrenderedcontent) | string | HTML/CSS snippet that must be embedded in a web page. The snippet is designed to avoid undesired interaction with the rest of the page's CSS.To ensure proper rendering and prevent CSS conflicts, it is recommended to encapsulate this `renderedContent` within a shadow DOM when embedding it into a webpage. See [MDN: Using shadow DOM](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM). |\n\nSearchEntrypoint.renderedContent\n\nHTML/CSS snippet that must be embedded in a web page. The snippet is designed to avoid undesired interaction with the rest of the page's CSS.\n\nTo ensure proper rendering and prevent CSS conflicts, it is recommended to encapsulate this `renderedContent` within a shadow DOM when embedding it into a webpage. See [MDN: Using shadow DOM](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM).\n\n**Signature:** \n\n renderedContent?: string;\n\nExample \n\n const container = document.createElement('div');\n document.body.appendChild(container);\n container.attachShadow({ mode: 'open' }).innerHTML = renderedContent;"]]