UIPackage
Menu

Framework

Change language

Boilerplate repo

Tooltip

tooltipui

Small popover triggered by hover/focus, used for short labels — icon-button names, abbreviation expansions, keyboard shortcuts. Auto-positions and respects `prefers-reduced-motion`.

Also available for React ->

Installation

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

Examples

Loading interactive previews…

npm dependencies

Used by

Files installed (5)

  • app/components/ui/tooltip/Tooltip.vue0.5 kB
    <script setup lang="ts">
    import type { TooltipRootEmits, TooltipRootProps } from 'reka-ui'
    import { TooltipRoot, useForwardPropsEmits } from 'reka-ui'
    
    const props = defineProps<TooltipRootProps>()
    const emits = defineEmits<TooltipRootEmits>()
    
    const forwarded = useForwardPropsEmits(props, emits)
    </script>
    
    <template>
      <TooltipRoot v-slot="slotProps" data-uipkge data-slot="tooltip" v-bind="forwarded">
        <slot v-bind="slotProps" />
      </TooltipRoot>
    </template>
    
  • app/components/ui/tooltip/TooltipContent.vue1.7 kB
  • app/components/ui/tooltip/TooltipProvider.vue0.5 kB
  • app/components/ui/tooltip/TooltipTrigger.vue0.3 kB
  • app/components/ui/tooltip/index.ts0.2 kB

Raw manifest:https://uipkge.dev/r/vue/tooltip.json