Components
Loading preview...
A Tooltip from the Flexnative UI registry with 10 variants: basic hover, four-side positioning, keyboard shortcut hint, icon-button trigger, custom open delay, rich multi-line content, light-on-dark theming, colored variants, arrow-less, and adjustable side offset. Built on Radix Tooltip.
@reapollo
npx shadcn@latest add https://21st.dev/r/larsen66/flexnative-tooltip'use client'
import { TooltipProvider } from '@/components/ui/flexnative-tooltip'
import { Button } from '@/components/ui/button'
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from '@/components/ui/flexnative-tooltip'
export function Tooltip03() {
return (
<Tooltip>
<TooltipTrigger asChild>
<Button>Save</Button>
</TooltipTrigger>
<TooltipContent>
Save changes
<kbd
data-slot="kbd"
className="bg-background/20 text-background ml-1 inline-flex h-5 items-center gap-0.5 rounded px-1.5 font-mono text-[10px] font-medium"
>
⌘S
</kbd>
</TooltipContent>
</Tooltip>
)
}
export default function Default() {
return (
<TooltipProvider>
<div className="flex min-h-screen w-full items-center justify-center bg-background p-10">
<Tooltip03 />
</div>
</TooltipProvider>
)
}