Skip to content

Commit

Permalink
fix: fix trigger type def (#210)
Browse files Browse the repository at this point in the history
* fix: fix trigger type def

* fix: fix children type
  • Loading branch information
Wendell authored Mar 11, 2020
1 parent 7778a26 commit 35baaed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Online examples: <https://react-component.github.io/tooltip/examples/>
</tr>
<tr>
<td>trigger</td>
<td>string[]</td>
<td>string | string[]</td>
<td>['hover']</td>
<td>which actions cause tooltip shown. enum of 'hover','click','focus'</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions src/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { placements } from './placements';
import Content from './Content';

export interface TooltipProps extends Pick<TriggerProps, 'onPopupAlign' | 'builtinPlacements'> {
trigger?: ActionType;
trigger?: ActionType | ActionType[];
defaultVisible?: boolean;
visible?: boolean;
placement?: string;
Expand All @@ -22,9 +22,9 @@ export interface TooltipProps extends Pick<TriggerProps, 'onPopupAlign' | 'built
getTooltipContainer?: (node: HTMLElement) => HTMLElement;
destroyTooltipOnHide?: boolean;
align?: AlignType;
arrowContent?: React.ReactElement;
arrowContent?: React.ReactNode;
id?: string;
children?: React.ReactElement;
children?: React.ReactNode;
popupVisible?: boolean;
}

Expand Down

1 comment on commit 35baaed

@vercel
Copy link

@vercel vercel bot commented on 35baaed Mar 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.