Skip to content

Commit 9d7ceef

Browse files
authored
fix: change IconButton base Props type to ButtonHTMLAttributes (#4031)
1 parent ffe0e1b commit 9d7ceef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/IconButton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { OverlayTrigger } from '../Overlay';
55
import Tooltip from '../Tooltip';
66
import Icon from '../Icon';
77

8-
interface Props extends React.HTMLAttributes<HTMLButtonElement> {
8+
interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
99
/** Component that renders the icon, currently defaults to `Icon` */
1010
iconAs?: React.ComponentType<any>,
1111
/** Additional CSS class[es] to apply to this button */

src/IconButtonToggle/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
44
/**
55
*
66
* @param {object} args arguments
7-
* @param {boolean} args.activeValue the current value of the active/selected iconButton.
7+
* @param {string} args.activeValue the current value of the active/selected iconButton.
88
* if not provided, none of the iconButtons will initially be active
99
* @param {Function} args.onChange callback to call when toggle value changes.
1010
* Receives value of the selected toggle button.

0 commit comments

Comments
 (0)