Skip to content

Commit

Permalink
[@mantine/core] HoverCard: Add missing types for classNames, styles a…
Browse files Browse the repository at this point in the history
…nd unstyled props (#3257)
  • Loading branch information
rtivital committed Jan 17, 2023
1 parent 86b3733 commit d3d7d24
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mantine-core/src/HoverCard/HoverCard.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { useComponentDefaultProps } from '@mantine/styles';
import { useComponentDefaultProps, ClassNames, Styles } from '@mantine/styles';
import { useDisclosure } from '@mantine/hooks';
import { useDelayedHover } from '../Floating';
import { Popover, PopoverBaseProps } from '../Popover';
import { Popover, PopoverBaseProps, PopoverStylesNames, PopoverStylesParams } from '../Popover';
import { HoverCardContextProvider } from './HoverCard.context';
import { HoverCardDropdown } from './HoverCardDropdown/HoverCardDropdown';
import { HoverCardTarget } from './HoverCardTarget/HoverCardTarget';
Expand All @@ -25,6 +25,10 @@ export interface HoverCardProps extends PopoverBaseProps {

/** Close delay in ms */
closeDelay?: number;

unstyled?: boolean;
classNames?: ClassNames<PopoverStylesNames>;
styles?: Styles<PopoverStylesNames, PopoverStylesParams>;
}

const defaultProps: Partial<HoverCardProps> = {
Expand Down

0 comments on commit d3d7d24

Please sign in to comment.