Skip to content

Spring Tooltip

A tooltip (role tooltip) that follows the cursor on a spring and hangs from it like a tag: it tilts with speed and stretches a little as it moves. It also appears on keyboard focus.

Plan
Free · MIT
Dependencies
React only
Props
8 (5 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
contentReactNode"It tilts with the cursor's speed"Content of the tooltip.
childrenReactNode""Element the tooltip appears over. If you pass nothing, a sample one is drawn.
sample{ title?: string; text?: string }"sample texts"Texts of the sample element: title and subtitle (only visible if you omit children).
tiltnumber1How much it tilts with the cursor's speed (0 = no tilt).
stiffnessnumber360Stiffness of the spring it follows the cursor with.
offsetnumber16Distance from the cursor, in px.
delaynumber0Milliseconds to wait before showing.
autoplaybooleanfalseWanders over the element on its own when nobody touches it.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { SpringTooltip } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • Steps with a progress line that fills from one node to the next; the new step lights up as the stroke arrives and the checkmark draws itself on completion.

    Navigation

  • Notifications stacked like cards: they fan out on hover or focus, pause while you read them, close on their own and are announced with aria-live.

    Navigation

  • An accessible ⌘K dialog with fuzzy search, match highlighting, groups and a spring selection that glides between rows. Arrow keys, Enter and Escape.

    Navigation