Hover

The v-hover component provides a simple interface for handling hover states for any component.

Usage

v-hover is a renderless component that uses the default slot to provide scoped access to its internal model; as well as mouse event listeners to modify it. To explicitly control the internal state, use the model-value property.

API

Examples

Props

Disabled

The disabled prop disables the hover functionality.

v-hover/prop-disabled.vue

Open and close delay

Delay v-hover events by using open-delay and close-delay props in combination or separately.

v-hover/prop-open-and-close-delay.vue

Misc

Hover list

v-hover can be used in combination with v-for to make a single item stand out when the user interacts with the list.

v-hover/misc-hover-list.vue

Transition

Create highly customized components that respond to user interaction.

v-hover/misc-transition.vue

Ready for more?

Continue your learning with related content selected by the Team or move between pages by using the navigation links below.