For Tailwind CSS v3 docs, click here.

Text Reveal Card

Mousemove effect to reveal text content at the bottom of the card.

通过 CLI 安装

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://registry.inspira-ui.com/text-reveal-card.json"

手动安装

在同一个文件中,复制并粘贴以下代码:

TextRevealCard.vue
TextRevealStars.vue

API

Prop 名称类型描述
classStringAdditional classes to be added to the card.
starsCountNumberControl the number of stars that are generated
starsClassStringAdditional classes to be added to the stars floating on content.
Slot Name描述
headerString
textDisplay default text when the card is not hovered over.
revealTextText to be revealed when hovered over the card.

感谢