Skip to content

Commit

Permalink
chore: make as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
aizad-deriv committed Jul 15, 2024
1 parent 93d3bcc commit 380215c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import "./Tooltip.scss";
type AsElement = "a" | "div" | "button";
type TooltipVariantType = "error" | "general";
export type TooltipProps<T extends AsElement> = ComponentProps<T> & {
as: T;
as?: T;
tooltipContainerClassName?: string;
tooltipContent: ReactNode;
tooltipOffset?: number;
Expand Down Expand Up @@ -65,7 +65,7 @@ export const Tooltip = forwardRef<
>(
(
{
as,
as = "div",
children,
hideTooltip = false,
tooltipContainerClassName,
Expand Down

0 comments on commit 380215c

Please sign in to comment.