--- title: "ZingGrid Web Component: `` | Docs" description: "View our in depth tutorial covering the web component `` tag and the associated features for the JavaScript grid." url: https://www.zinggrid.com/docs/api/tags/zg-tooltip --- ```text experiment_id: web-retrieval-v1 fixture_id: /docs/api/tags/zg-tooltip.md mode: provenance representation: markdown origin_response_id: 11baac40102567385a4c09bdf0e5aab5 version: 2026-10-21 version_created_at_utc: 2026-10-21T20:42:35.655Z version_nonce: 1f461ea919722bdc6c25abac8377c52d generated_at_utc: 2026-10-27T07:05:35.575Z response_nonce: 8d7da7a07506cd5f91c5ea0d5c2ca812 ``` # `` The `` tag is a web component that serves as a container the the grid's tooltip and used as a CSS target for styling by the developer.. **The `` web component should not be accessed specifically beyond styling.** ![Image of the DOM relationship for the zg-tooltip web component tag](https://storage.googleapis.com/zinggrid-pwa.appspot.com/components/v2/zg-tooltip-web-component-dom.png "Image of the DOM relationship for the zg-tooltip web component tag") | Component | Relationship | Type | Ancestor | | --- | --- | --- | --- | | [ZingGrid](https://www.zinggrid.com/docs/api/tags/zing-grid) | Parent | Generated | n/a | #### Related Web Components - [``](https://www.zinggrid.com/docs/api/tags/zg-cell) - [``](https://www.zinggrid.com/docs/api/tags/zg-head-cell) - [``](https://www.zinggrid.com/docs/api/tags/zing-grid) ## Usage The `` element is a generated element added to `` when the `cell-tooltip-text` or `header-tooltip-text` attribute is defined. ```html ... ``` ## Attributes There are no attributes available for the `` web component. ## CSS Variables There are no CSS variables available for the `` web component. ## CSS Selector `` can be styled by common CSS selectors, like so: ```css zg-tooltip { background: red; } ``` ## CSS Shadow Parts `` exposed elements within the shadow can be styled by CSS shadow parts, like so: ```css zg-tooltip::part(tooltip) { background-color: red; } ``` Below is a list of all the associated ZGTooltip shadow parts. Check out the [full list of CSS shadow parts](https://www.zinggrid.com/docs/api/styling/css-shadow-parts) or our [Styling Basics guide](https://www.zinggrid.com/docs/getting-started/styling-basics/) to learn more about styling the grid. | Name | Description | | --- | --- | | `close` | The tooltip close icon | ## Slots There are no slots available for the `` web component.