-
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 EuiBadge. * Add PR info to CHANGELOG.md * Fix typo in changelog. * Update EuiBadge SFC annotation based on PR feedback.
- Loading branch information
1 parent
eaec046
commit f3a5ec5
Showing
3 changed files
with
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/// <reference path="../icon/index.d.ts" /> | ||
|
||
import { HTMLAttributes, MouseEventHandler } from 'react'; | ||
|
||
declare module '@elastic/eui' { | ||
|
||
type IconSide = 'left'; | ||
|
||
export interface EuiBadgeProps { | ||
iconType?: IconType; | ||
iconSide?: IconSide; | ||
iconOnClick?: MouseEventHandler<HTMLButtonElement>; | ||
iconOnClickAriaLabel?: string; | ||
onClick?: MouseEventHandler<HTMLButtonElement>; | ||
onClickAriaLabel?: string; | ||
color?: string; | ||
closeButtonProps?: Object; | ||
} | ||
|
||
export const EuiBadge: SFC< | ||
CommonProps & HTMLAttributes<HTMLSpanElement> & HTMLAttributes<HTMLButtonElement> & EuiBadgeProps | ||
>; | ||
} |
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