-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add typings for EuiToolTip and EuiIconTip (#1087)
* Add typings to EuiToolTip and EuiIconTip, and fix docs typo. * Add PR info to changelog. * Rename type for PropTypes. * Update type name to correspond with associated types.
- Loading branch information
1 parent
70f0af5
commit bf0a6ce
Showing
4 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { ReactElement, ReactNode, SFC } from 'react'; | ||
|
||
declare module '@elastic/eui' { | ||
export type ToolTipPositions = | ||
| 'top' | ||
| 'right' | ||
| 'bottom' | ||
| 'left'; | ||
|
||
export interface EuiToolTipProps { | ||
children: ReactElement<any>; | ||
className?: string; | ||
content: ReactNode; | ||
title?: ReactNode; | ||
id?: string; | ||
position?: ToolTipPositions; | ||
} | ||
export const EuiToolTip: SFC<EuiToolTipProps>; | ||
|
||
export interface EuiIconTipProps { | ||
color?: string; | ||
type?: string; | ||
size?: string; | ||
'aria-label'?: string; | ||
} | ||
export const EuiIconTip: SFC<EuiIconTipProps>; | ||
} |