Skip to content

Commit 77b862f

Browse files
authored
Expose title prop of Button and Badge (#617)
1 parent 962445e commit 77b862f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/components/Badge.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,12 @@ Badge.propTypes = {
150150
/**
151151
* Target attribute to pass on to the link. Only applies to external links.
152152
*/
153-
target: PropTypes.string
153+
target: PropTypes.string,
154+
155+
/**
156+
* Sets the title attribute of the underlying HTML button.
157+
*/
158+
title: PropTypes.string
154159
};
155160

156161
export default Badge;

src/components/Button.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ Button.propTypes = {
159159
*/
160160
size: PropTypes.string,
161161

162+
/**
163+
* Sets the title attribute of the underlying HTML button.
164+
*/
165+
title: PropTypes.string,
166+
162167
/**
163168
* Set outline button style, which removes background images and colors for a
164169
* lightweight style.

0 commit comments

Comments
 (0)