Skip to content

Commit 7305e0d

Browse files
author
Kubit
committed
Add title prop to Icon component
1 parent b07e154 commit 7305e0d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/components/icon/icon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const IconBasicComponent = (
3737
disabled={disabled}
3838
id={props.id}
3939
tabIndex={tabIndex}
40+
title={props.title || ''}
4041
type={ButtonType.BUTTON}
4142
onClick={onClick}
4243
>

src/components/icon/types/icon.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export interface IIconStandAlone extends IconAriaAttributes {
4040
twistAnimationTransformValue?: string | null | undefined;
4141
complex?: boolean;
4242
customIconStyles?: IconTypes;
43+
title?: string;
4344
}
4445

4546
export type IIcon = Omit<IIconStandAlone, 'onKeyDown'> & {

0 commit comments

Comments
 (0)