Tooltip

Reveals a short explanation when a user hovers over or focuses an element. Use it to clarify unfamiliar icons or concise controls.

React

Ready

Figma

React examples

Default

import { IconDeepSearch } from "@kela-systems/icons/outline";
import {
  Button,
  Kbd,
  Tooltip,
  TooltipContent,
  TooltipProvider,
  TooltipTrigger,
} from "@kela-systems/ui-components";

export default function TooltipDefault() {
  return (
    <TooltipProvider>
      <Tooltip>
        <TooltipTrigger render={<Button variant="outline" size="icon" aria-label="Search tracks" />}>
          <IconDeepSearch />
        </TooltipTrigger>
        <TooltipContent>
          Search tracks <Kbd>/</Kbd>
        </TooltipContent>
      </Tooltip>
    </TooltipProvider>
  );
}

Props

Tooltip

No props of its own. It also takes the props of Base UI's tooltip.

TooltipTrigger

No props of its own. It also takes the props of Base UI's tooltip.

TooltipContent

No props of its own. It also takes the props of Base UI's tooltip.

TooltipProvider

No props of its own. It also takes the props of Base UI's tooltip.

Also exported: createTooltipHandle (function).

Weigh Tooltip against these before you choose.

Read this page as Markdown

Search ARK

Find a page, a primitive or a component.