Tooltip

An item-name tooltip with a violet frame.

Install and use

The first command adds the component and the Mine theme, the second adds this example. Render <Mine> once near your root for the skin, sounds and narrator.

"use client"

import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"
import { BookmarkIcon } from "lucide-react"

function Example() {
  return (
    <Tooltip>
      <TooltipTrigger aria-label="Add to library">
        <BookmarkIcon aria-hidden="true" />
      </TooltipTrigger>
      <TooltipContent>Add to library</TooltipContent>
    </Tooltip>
  )
}

export { Example }