Skip to main content

Tooltip

Feedback & Status

Tooltip

Popover-based tooltip with arrow pointing to the trigger.

Usage

Explain icon-only actions or clarify abbreviations on hover/focus.

Highlights

  • Delay + placement controls
  • Keyboard focus friendliness

When to use it

  • Icon buttons need accessible labels.
  • You must teach new concepts without clutter.

Examples

Default

Preview (Web)
import { IconButton } from 'react-native-molecules/components/IconButton';
import { Tooltip } from 'react-native-molecules/components/Tooltip';

export default function Example() {
  return (
      <Tooltip>
          <Tooltip.Trigger>
              <IconButton name="star-outline" />
          </Tooltip.Trigger>
          <Tooltip.Content>
              mark as favorite
          </Tooltip.Content>
      </Tooltip>
  );
}
PropTypeDefaultDescription
childrenRequiredReactNode & (ReactElement<unknown, string | JSXElementConstructor<any>> | ReactElement<unknown, string | JSXElementConstructor<any>>[])
style((false | "" | ViewStyle | RegisteredStyle<ViewStyle> | RecursiveArray<Falsy | ViewStyle | RegisteredStyle<ViewStyle>> | null) & ViewStyle) | undefined
showArrowboolean | undefined
fadeInDelaynumber | undefined
fadeOutDelaynumber | undefined
hoverableContentboolean | undefined
Defined in react-native-molecules/components/Tooltip