Skip to content

Commit

Permalink
fix: missing 'value' prop for <IconButton>
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Dec 3, 2024
1 parent cb11e24 commit 8742024
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/IconButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ interface Props extends React.HTMLAttributes<HTMLButtonElement> {
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'light' | 'dark' | 'black' | 'brand';
/** size of button to render */
size?: 'sm' | 'md' | 'inline';
/** Used with `IconButtonToggle` */
value?: string;
/** no children */
children?: never;
}
Expand Down Expand Up @@ -104,6 +106,7 @@ IconButton.defaultProps = {
size: 'md',
onClick: () => {},
isActive: false,
value: undefined,
children: undefined,
};

Expand Down Expand Up @@ -140,6 +143,8 @@ IconButton.propTypes = {
size: PropTypes.oneOf(['sm', 'md', 'inline']),
/** whether to show the `IconButton` in an active state, whose styling is distinct from default state */
isActive: PropTypes.bool,
/** Used with <IconButtonToggle> */
value: PropTypes.string,
};

interface PropsWithTooltip extends Props {
Expand Down

0 comments on commit 8742024

Please sign in to comment.