Tooltip
A React component in Beamline's Overlays category, in the free sample.
Short supporting text for a control: opens after a moment on hover and at once on keyboard focus; inside a toolbar group the next one opens instantly.
Use it for
- Naming icon-only buttons and showing their keyboard shortcut.
- Saying why a control is disabled and how to enable it.
Not for
- Essential information (put it on the page).
- Anything clickable or long (popover).
Anatomy
- trigger (your control)
- content
- shortcut
Variants
- side: top, right, bottom, left
- align: start, center, end
States
- closed
- delayed-open (after 500 ms hover; arrives from its control's side)
- instant-open (keyboard focus, or inside a group after another: travels from the last one)
- closing
Keyboard
- Focus opens it at once
- Escape closes it
Motion
It arrives out of its control on whichever side it opens: it starts a step toward the control and moves away into place as it fades in over --pui-motion-in (a hover delay first; keyboard focus opens it at once with a fade). Inside a TooltipGroup the next one opens at once where the last one stood and travels to its own control over --pui-duration-fast while the last one leaves in the arrival time, so one tooltip moves along the toolbar. It fades out over the departure. Reduced motion keeps the fades and drops all travel.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
content | ReactNode | — | What the control does; a few words. |
shortcut | string | — | A keyboard shortcut shown after the text, e.g. "⌘B". |
side / align | string | "top" / "center" | side: Edge from which the panel or anchored content opens. Defaults to "top". align: Alignment within the available space. Defaults to "center". |
open / defaultOpen / onOpenChange | boolean | — | open: Open state, controlled or uncontrolled; the tooltip opens on hover and on keyboard focus either way. defaultOpen: Initial open state when uncontrolled. Defaults to false. onOpenChange: Reports open state after a change; no callback by default. |
TooltipGroup delay | number | 500 | delay: On TooltipGroup: Milliseconds before the first tooltip in the group opens. Defaults to 500. |
classNames | TooltipClassNames | — | Classes for the named visual parts; no part overrides by default. |
style / ref | CSSProperties / native Ref | — | style: Inline styles on the documented visual root; no inline overrides by default. ref: Receives the documented root element; no ref by default. |
children (required) | ReactElement<unknown, string | JSXElementConstructor<any>> | — | The control: one element that can take a ref (a button). |
side | "bottom" | "left" | "right" | "top" | — | Edge from which the panel or anchored content opens. Defaults to "top". |
align | "center" | "end" | "start" | — | Alignment within the available space. Defaults to "center". |
open | boolean | — | Open state, controlled or uncontrolled; the tooltip opens on hover and on keyboard focus either way. |
defaultOpen | boolean | — | Initial open state when uncontrolled. Defaults to false. |
onOpenChange | ((open: boolean) => void) | — | Reports open state after a change; no callback by default. |
className | string | — | Classes on the documented visual root; no override by default. |
style | CSSProperties | — | Inline styles on the documented visual root; no inline overrides by default. |
ref | Ref<HTMLDivElement> | — | Receives the documented root element; no ref by default. |
TooltipGroup.delay | number | — | On TooltipGroup: Milliseconds before the first tooltip in the group opens. Defaults to 500. |
Used in
- Account ledger
- Accounting workbench
- Action center
- Admin users
- Agency book
- Agent builder
- Agent monitor
- Agent runs monitor
- AI agent workspace
- Analytics dashboard
- API keys & webhooks
- Applicant projects
- Appointment book
- Approval policy
- Artifact workbench
- Asset library
- Asset workspace
- Audience segments
- Audit log
- Audit room
- Battery sizing
- Benefit changes
- Billing & invoices
- Billing desk
- Services and hours
- Budget month
- Bulk item edit
- Call sheet
- Captions
- Care plan
- Case workspace
- Change orders
- Changelog feed
- Insurance claims
- Click heatmap
- Client forms
- Content workbench
- Collection batch edit
- Component properties
- Component source
- Condition checklist
- Contact profile
- Content releases
- Conversation history
- Corrective actions
- Counter service
- Course builder
- Course dashboard
- Crew booking
- CRM pipeline
- Customer requests
- Cut review
- Cycle planner
- Dashboard controls
- Dashboard panels
- Data binding
- Database builder
- Day agenda
- Desk booking
- Dispensing
- Document review
- Draft orders
- Drawing board
- Element index
- Email automation
- Engineering changes
- Equipment register
- Estimate share
- Event evidence
- External review
- Field conditions
- File detail
- File manager
- Flight logbook
- Gift batches
- Gift desk
- Goods receiving
- Grading desk
- Guest messages
- Guest review
- Health questionnaire
- Helpdesk inbox
- Hiring pipeline
- Hours ledger
- AI image studio
- Import runs
- Inspection review
- Instructor finder
- Integrations
- Inventory counts
- Invoices
- Issue workbench
- Issued ticket
- Item setup
- Job booking setup
- Job card
- Job materials
- Kit builder
- Knowledge base manager
- Label designer
- Language preview
- Layout inspector
- Lease setup
- Linked appointments
- Localization overview
- Maintenance plan
- Maintenance plans
- Map annotations
- Map explorer
- Market screener
- Matrix question
- Media collection
- Meeting and call review
- Messaging journeys
- Metadata fields
- Model inspector
- Model issues
- Model playground
- Model workbench
- Newsletter desk
- Note templates
- Notification preferences
- Nutrition library
- Order board
- Order closeout
- Order composer
- Order detail
- Order history and fills
- Order ledger
- Orders admin
- Owner records
- Packages & memberships
- Page header
- Participant review
- Parts tracker
- Patient chart
- Patient overview
- Payroll approvals
- Payroll cycles
- Payroll run
- Permit fees
- Permit services
- Pipeline record
- Pipeline views
- Plan acceptance
- Plan comparison
- Plan follow-up
- Plan readiness
- Plan templates
- Policy rules
- Portfolio overview
- Post performance
- Post release
- Pre-flight briefing
- Print quote
- Print scheduler
- Probing chart
- Procedure picker
- Product analytics
- Product editor
- Program modules
- Program setup
- Project board
- Project directory
- Project home
- Project periods
- Project signals
- Projects
- Proposal payments
- Protocol builder
- Prototype task
- Publishing team
- Purchase order desk
- Purchase orders
- Purchasing rules
- Quality checks
- Query library
- Question builder
- Queue settings
- Reading library
- Reconciliation
- Record catalogue
- Record search
- Record settings
- Record setup
- Record sharing
- Recruiter home
- Rental policy
- Report builder
- Report library
- Research synthesis
- Reservation desk
- Resource booking
- Rooms & equipment
- Restock desk
- Retention analysis
- Return queue
- Return request
- Review page builder
- Review share
- Rig editor
- Roles & permissions
- Roof layout
- Room readiness
- Run of show
- Sales dashboard
- Saved views
- Screenplay revisions
- Segment editor
- Serial allocation
- Service estimate
- Service tasks
- Session notes and tasks
- Session replay
- Settings
- Shared inbox
- Shift briefing
- Shift planner
- Shift rotations
- Shipment split
- Shop floor
- Shot list
- Signature fields
- Slide presenter
- Slot editor
- Social media scheduler
- Sound library
- Special orders
- Stage reports
- Status dashboard
- Stay folio
- Stock alerts
- Stock count
- Stock moves
- Study setup
- Submittal register
- AI support chat
- AI support console
- Table service
- Task results
- Team calendar
- Team chat
- Team & members
- Telemetry explorer
- Text styles
- Ticket orders
- Ticket setup
- Timesheet review
- Tracker desk
- Trading terminal
- Training progress
- Transaction review
- Transition sequence
- Translation editor
- Translation key
- Translation workbench
- Treatment plan
- Tree test
- Turntable review
- Versioned dashboard
- Versioned document
- Visit board
- Visitor desk
- Voice agent
- Volunteer rota
- Waitlist desk
- Work orders
- Workflow builder
- Workflow composer
- Workflow library
- Workout logger
- Workout planner
- Workspace switcher
- Writing canvas
Dependencies
@radix-ui/react-tooltip
Import
import { TooltipGroup, Tooltip } from "@beamline/tooltip";
Get it
Tooltip is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Tooltip is included in the free MIT sample. Get Beamline · Connect your agent
More in Overlays
- Command menu: Search-first list of every action: ranked matching, groups, keycap shortcuts and nested pages; inline as CommandPalette or in a ⌘K dialog as CommandMenu.
- Toast: Short results of an action stacked at an edge: point at the stack to fan it out and pause the timers; undo or retry in place; Alt+T, Escape and a swipe…
- Share dialog: Share a document, board or project: invite people by name or email with the access they get, change or remove anyone's access in place, and set who the…
- Context menu: Actions for an object on right-click, long-press, Shift+F10 or the menu key, opened at the pointer, with the same rows as the dropdown menu.
- Hover card: A preview of a person, link or record on hover or keyboard focus, without leaving the page; HoverCardProfile is the standard person preview.
- Product tour: A short guided tour over the real interface: a spotlight that glides from one element to the next while the rest of the screen dims, and a card beside…
- Bottom sheet: A phone panel that rests at a peek and follows the finger to full height; a flick down closes it, and the handle works from the keyboard.
- Sheet: A panel that slides in from an edge with the page still visible behind it: header and footer stay put while the body scrolls.
- Dropdown menu: A list of actions behind a trigger, with shortcuts, check items, headings and submenus; one highlight glides under the pointer and jumps with the keyboard.
- Dialog: A focused task over the page (create, invite, rename) with a title, body and footer; focus moves in, is trapped and returns on close.
- Alert Dialog: A blocking confirmation that must be answered: the scrim does not dismiss it, focus starts on the safe choice, and an async action keeps it open until…
- Popover: A small surface anchored to a trigger for a short form, a filter or an explanation; focus moves in and returns on close.