Modus UI

Ember Hint

Web (React)

An inverted ink tooltip that stays warm, so moving between triggers glides from one label to the next.

Labels are small uppercase mono on a foreground slab, matching the theme in light and dark. After the first one opens, neighbours show instantly and the tooltip travels across. Wrap triggers in EmberHintGroup to share that warm state.

Modus / Ember Hint

Installation

CLI

npx @modus-ui/cli add ember-hint

Manual

  1. Copy the code from the component tab.
  2. Create a file at components/ui/ember-hint.tsx.
  3. Paste the code.

Usage

tsx
import { EmberHint } from "@/components/ui/ember-hint";

export default function Example() {
  return (
    <EmberHint content="Bold">
      <button>Bold</button>
    </EmberHint>
  );
}

Props

PropTypeDefaultDescription
contentany--
shortcutany--
childrenany--
sidestring"top"-
delayany--
warmWindowany--
surfaceColorstring"hsl(var(--foreground))"-
inkColorstring"hsl(var(--background))"-
sizestring"md"-
radiusnumber3-
gapnumber8-
arrowbooleantrue-
popDurationnumber160-
popScalenumber0.94-
popBlurnumber4-
showFusebooleanfalse-
longPressnumber500-
disabledbooleanfalse-

Comments

  • No comments yet.