Skip to content

Commit

Permalink
fix: Export tooltip types
Browse files Browse the repository at this point in the history
  • Loading branch information
d-beezee committed Sep 24, 2024
1 parent 76470ce commit 3af7356
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/stories/tooltip/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Tooltip as ZendeskTooltip } from "@zendeskgarden/react-tooltips";
import { getColor } from "../theme/utils";
import { useContext } from "react";
import { TooltipArgs } from "./_types";
import styled, { ThemeContext } from "styled-components";
import { theme as globalTheme } from "../theme";
import { getColor } from "../theme/utils";
import { TooltipArgs } from "./_types";

/**
* Tooltips appear when a user hovers or focuses an element. They provide contextual information about the element they are paired with.
Expand All @@ -23,7 +23,7 @@ const TooltipComponent = (props: TooltipArgs) => {
);
};

const Tooltip = styled(TooltipComponent)`
const StyledTooltip = styled(TooltipComponent)`
box-shadow: ${({ theme }) =>
theme.shadows.lg(
`${theme.space.base * 3}px`,
Expand All @@ -40,4 +40,6 @@ const Tooltip = styled(TooltipComponent)`
`};
`;

const Tooltip = (props: TooltipArgs) => <StyledTooltip {...props} />;

export { Tooltip };

0 comments on commit 3af7356

Please sign in to comment.