UIPackage
Menu

Framework

Change language

Boilerplate repo

Hover Card

hover-cardui

Rich popover triggered by hover/focus instead of click. Use for inline previews — user cards on @mentions, link previews, KPI explanations. Built on reka-ui with a configurable open/close delay.

Also available for React ->

Installation

$npx shadcn-vue@latest add https://uipkge.dev/r/vue/hover-card.json
Named registry:npx shadcn-vue@latest add @uipkge/hover-cardInstalls to:app/components/ui/hover-card/

Examples

Loading interactive previews…

npm dependencies

Used by

Files installed (4)

  • app/components/ui/hover-card/HoverCard.vue0.5 kB
    <script setup lang="ts">
    import type { HoverCardRootEmits, HoverCardRootProps } from 'reka-ui'
    import { HoverCardRoot, useForwardPropsEmits } from 'reka-ui'
    
    const props = defineProps<HoverCardRootProps>()
    const emits = defineEmits<HoverCardRootEmits>()
    
    const forwarded = useForwardPropsEmits(props, emits)
    </script>
    
    <template>
      <HoverCardRoot v-slot="slotProps" data-uipkge data-slot="hover-card" v-bind="forwarded">
        <slot v-bind="slotProps" />
      </HoverCardRoot>
    </template>
    
  • app/components/ui/hover-card/HoverCardContent.vue1.6 kB
  • app/components/ui/hover-card/HoverCardTrigger.vue0.3 kB
  • app/components/ui/hover-card/index.ts0.2 kB

Raw manifest:https://uipkge.dev/r/vue/hover-card.json