Overlayssrc/components/ui/tooltip.tsx
Tooltip
A small label shown on hover or focus.
Preview
Installation
Copy the component source into your project with `degit`. This port is intentionally not distributed as an npm package.
bunx degit https://github.com/LiasCode/shadcn-preact/src/components/ui#main ./src/components/uiUsage
import { Tooltip } from "@/components/ui/tooltip"
export function Example() {
return <Tooltip>Tooltip</Tooltip>
}API Reference
ExportPurpose
TooltipComposable part exported by `@/components/ui/tooltip`.