Skip to main content
Light Dark System

Hover Container

<zn-hover-container> | ZnHoverContainer
Since 1.0 experimental

The HoverContainer component is used to display additional information when a user hovers over or clicks on an element.

<zn-hover-container></zn-hover-container>

Examples

First Example

TODO

Second Example

TODO

Importing

If you’re using the autoloader or the traditional loader, you can ignore this section. Otherwise, feel free to use any of the following snippets to cherry pick this component.

To import this component from the CDN using a script tag:

<script type="module" src="https://cdn.jsdelivr.net/npm/@kubex/zinc@1.0.23/dist/components/hover-container/hover-container.js"></script>

To import this component from the CDN using a JavaScript import:

import 'https://cdn.jsdelivr.net/npm/@kubex/zinc@1.0.23/dist/components/hover-container/hover-container.js';

To import this component using a bundler:

import '@kubex/zinc/dist/components/hover-container/hover-container.js';

Slots

Name Description
(default) The content of the hover-container
anchor The anchor the hover-container is attached to.

Learn more about using slots.

Events

Name React Event Description Event Detail
zn-show Emitted when the hover-container is shown. -
zn-after-show Emitted after the hover-container is shown. -
zn-hide Emitted when the hover-container is hidden. -
zn-after-hide Emitted after the hover-container is hidden. -

Learn more about events.