Welcome UI logo
FOUNDATIONSCOMPONENTSBLOG650+
10.0.0

Menu

    Actions

    • Button
    • ButtonGroup
    • Close Button
    • Link

    Data display

    • Accordion
    • Avatar
    • Badge
    • Card
    • Swiper
    • Table
    • Tag
    • VisuallyHidden

    Feedback

    • Alert
    • StickyNote

      NEW

    • Toast

    Forms

    • Checkbox
    • DatePicker
    • DateTimePicker
    • Field
    • FileDrop
    • FileUpload
    • Hint
    • InputText
    • Label
    • PasswordInput
    • Radio
    • RadioGroup
    • RadioTab
    • Search
    • Select
    • Slider
    • Textarea
    • TimePicker
    • Toggle

    Icons & logo

    • Icon
    • IconStamp

      NEW

    • Logo
    • VariantIcon
    • WelcomeLoader

    Layout

    • AspectRatio
    • Loader
    • Window

      NEW

    Navigation

    • Breadcrumb
    • DropdownMenu
    • Pagination
    • Stepper

      NEW

    • Tabs

    Overlay

    • Drawer
    • Modal
    • Popover
    • Tooltip

    Typography

    • Text

    Utilities

    • Grid background

Overview

Props

Tooltip

The Tooltip component is a small, interactive UI element that provides contextual information or descriptions when users hover over an element or focus on it. It enhances user experience by offering additional guidance or clarifications without cluttering the main interface. Tooltips are commonly used for icons, buttons, links, and other interactive elements to improve accessibility and usability.

SourceBuilt with Ariakit
Github
import { Button } from 'welcome-ui/Button'
import { Tooltip } from 'welcome-ui/Tooltip'
const Example = () => {
return (
<Tooltip content="Tooltip">
<Button>Tooltip</Button>
</Tooltip>
)
}
export default Example

Examples

With title

Add a title to the tooltip component (optional)

Github

Fixed

Maybe you don't want the tooltip to follow the cursor set by fixed property

Github

With a long text and a custom placement

Set a max-width for long text

Github

With a disabled button

We're adding a wrapper around the button when it's disabled otherwise the tooltip does not trigger.

Github

Placement

Using only with the fixed prop, placement will enable a translate animation on your tooltip. The direction works with these values for placement.

Github
PopoverText

On this page

  • Definition
  • Examples
    • With title
    • Fixed
    • With a long text and a custom placement
    • With a disabled button
    • Placement
Made with by
Welcome to the jungle logo

Documentations

  • Foundations
  • Components
  • Source code

Updates

  • Releases
  • Issues

Community

  • Github
  • Twitter
  • Medium
  • Jobs