Skip to content

Tooltip

Tooltips that warm up. The first waits for its delay; after that the row is warm, and one tip slides from trigger to trigger, its width springing to the new text while the words cross-fade.

Download
Customize

Shows on keyboard focus, never on a touch tap.

Install

npx shadcn@latest add https://obsydeui.com/r/tooltip.json

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Tooltip } from '@/components/obsyde/ember/tooltip/Tooltip';

export function Example() {
  return (
    <Tooltip side="top" />
  );
}

Files

Plain React, TypeScript and CSS. No dependencies. The download keeps these paths.

  • ember/tooltip/Tooltip.tsxcomponent
  • ember/tooltip/tooltip-demo.cssstyles
  • ember/tooltip/tooltip.cssstyles
  • ember/tooltip/TooltipDemo.tsxdemo
  • ember/overlays-kit/demo.cssshared
  • ember/overlays-kit/kit.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
sideSide'top' | 'bottom' | 'left' | 'right''top'
shortcutsShortcutsbooleantrue
delayDelay (ms)number400