For Tailwind CSS v3 docs, click here.

Direction Aware Hover

A direction aware hover card, that displays an image with dynamic hover effects and customizable content overlay.

通过 CLI 安装

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://registry.inspira-ui.com/direction-aware-hover.json"

手动安装

复制并粘贴以下代码:

DirectionAwareHover.vue

API

Prop 名称类型默认值描述
imageUrlstringRequiredThe URL of the image to be displayed.
classstringundefinedAdditional CSS classes for the card container.
imageClassstringundefinedAdditional CSS classes for the image element.
childrenClassstringundefinedAdditional CSS classes for the content overlay.

感谢