Tooltip
A tooltip is a small popover that displays information when you hover over or tap an element.
'use client'import {Button,Tooltip,TooltipProvider,TooltipTrigger,TooltipContent,} from '@nerdfish/ui'import { Plus } from 'lucide-react'export function TooltipExample() {return (<TooltipProvider><Tooltip><TooltipTrigger asChild><Buttonvariant="outline"className="flex w-10 items-center justify-center rounded-full p-0"><Plus className="size-4" /><span className="sr-only">Add</span></Button></TooltipTrigger><TooltipContent><p>Add to library</p></TooltipContent></Tooltip></TooltipProvider>)}
Usage
import {Tooltip,TooltipProvider,TooltipTrigger,TooltipContent,} from '@nerdfish/ui'
<TooltipProvider><Tooltip><TooltipTrigger>Hover</TooltipTrigger><TooltipContent><p>Add to library</p></TooltipContent></Tooltip></TooltipProvider>