New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@edux-design/tooltips

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edux-design/tooltips

Radix-based tooltip primitives with baked-in Edux motion + colors. Provides `TooltipProvider`, `Tooltip`, `TooltipTrigger`, and `TooltipContent`.

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@edux-design/tooltips

Radix-based tooltip primitives with baked-in Edux motion + colors. Provides TooltipProvider, Tooltip, TooltipTrigger, and TooltipContent.

Installation

pnpm add @edux-design/tooltips @radix-ui/react-tooltip @edux-design/utils
# or
npm install @edux-design/tooltips @radix-ui/react-tooltip @edux-design/utils

Peer deps: react@^19.1.0, react-dom@^19.1.0.

Usage

import {
  TooltipProvider,
  Tooltip,
  TooltipTrigger,
  TooltipContent,
} from "@edux-design/tooltips";

export function IconWithTooltip() {
  return (
    <TooltipProvider>
      <Tooltip>
        <TooltipTrigger asChild>
          <button className="p-2 rounded-md hover:bg-bg-subtle">?</button>
        </TooltipTrigger>
        <TooltipContent side="bottom" sideOffset={6}>
          Helpful hint goes here.
        </TooltipContent>
      </Tooltip>
    </TooltipProvider>
  );
}

TooltipContent accepts Radix placement props (side, sideOffset) plus className. It automatically renders the arrow and uses a subtle fade/translate animation via Tailwind classes.

Development

pnpm --filter @edux-design/tooltips lint
pnpm --filter @edux-design/tooltips check-types
pnpm --filter @edux-design/tooltips build

Story: src/demos/Tooltip.stories.jsx.

Notes

  • Always wrap tooltips in TooltipProvider so hover/focus delay groups behave as expected.
  • TooltipTrigger forwards props to Radix, so you can use asChild to keep DOM output clean.
  • For accessible labeling, ensure the trigger already has descriptive text or connect it with aria-label.

FAQs

Package last updated on 01 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts