All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.esm.components.tooltip.tooltip.js Maven / Gradle / Ivy

Go to download

Responsive and accessible React UI components built with React and Emotion

The newest version!
"use strict";
"use client";
import { Tooltip } from '@ark-ui/react/tooltip';
import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';

const {
  withRootProvider,
  withContext,
  useStyles: useTooltipStyles,
  PropsProvider
} = createSlotRecipeContext({ key: "tooltip" });
const TooltipRootProvider = withRootProvider(
  Tooltip.RootProvider
);
const TooltipRoot = withRootProvider(Tooltip.Root);
const TooltipPropsProvider = PropsProvider;
const TooltipTrigger = withContext(Tooltip.Trigger, "trigger", { forwardAsChild: true });
const TooltipPositioner = withContext(Tooltip.Positioner, "positioner", { forwardAsChild: true });
const TooltipContent = withContext(
  Tooltip.Content,
  "content",
  { forwardAsChild: true }
);
const TooltipArrow = withContext(
  Tooltip.Arrow,
  "arrow",
  { forwardAsChild: true }
);
const TooltipArrowTip = withContext(Tooltip.ArrowTip, "arrowTip", { forwardAsChild: true });
const TooltipContext = Tooltip.Context;

export { TooltipArrow, TooltipArrowTip, TooltipContent, TooltipContext, TooltipPositioner, TooltipPropsProvider, TooltipRoot, TooltipRootProvider, TooltipTrigger, useTooltipStyles };




© 2015 - 2025 Weber Informatics LLC | Privacy Policy