felipemenezes098

Flexnative Tooltip

Buttons 1

About

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.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Flexnative Tooltip to your project and fits it to your theme.

Code

How Flexnative Tooltip is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client'

import { TooltipProvider } from '@/components/ui/flexnative-tooltip'
import { Button } from '@/components/ui/button'
import {
  Tooltip,
  TooltipContent,
  TooltipTrigger,
} from '@/components/ui/flexnative-tooltip'

// Trick: applying the `dark` class to TooltipContent flips its local CSS
// variables to the dark-scheme values, so `bg-foreground` (default tooltip
// background) resolves to a light color — and the arrow follows automatically
// because it also reads `--foreground`. In dark mode this is a no-op.
export function Tooltip07() {
  return (
    <Tooltip>
      <TooltipTrigger asChild>
        <Button variant="outline">Hover me</Button>
      </TooltipTrigger>
      <TooltipContent className="dark">Light tooltip via dark class</TooltipContent>
    </Tooltip>
  )
}

export default function Default() {
  return (
    <TooltipProvider>
      <div className="flex min-h-screen w-full items-center justify-center bg-background p-10">
        <Tooltip07 />
      </div>
    </TooltipProvider>
  )
}

Dependencies

More by felipemenezes098

View all
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    976
  • Editorial Collage Hero

    Editorial Collage Hero

    460
  • Split Hero With Image Cards

    Split Hero With Image Cards

    417
  • Editorial Image Hero

    Editorial Image Hero

    394
  • Scroll 01

    Scroll 01

    367
  • Real Estate Search Hero

    Real Estate Search Hero

    198
  • Editorial Hero

    Editorial Hero

    180
  • Hero with Dashboard Mockup

    Hero with Dashboard Mockup

    128

More in Buttons

View all
  • Texture Button

    Texture Button

    98
  • Button

    Button

    1
  • Button

    Button

    68
  • Eclipse Button

    Eclipse Button

    3
  • Button

    Button

    65
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Base Button

    Base Button

    4
  • App Store Button

    App Store Button

    459