Skip to content

Commit 217cfdd

Browse files
author
chenyueban
committed
fix(IconButton): Fix IconButton does not have default size
1 parent 76900db commit 217cfdd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/fluent-ui/src/IconButton/IconButton.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const IconButton: React.FC<IconButtonProps> = React.forwardRef<HTMLButtonElement
1616
className: classNameProp,
1717
variant = 'standard',
1818
disabled,
19-
size,
19+
size = 'medium',
2020
onClick,
2121
children,
2222
...rest
@@ -46,7 +46,8 @@ IconButton.displayName = `F${name}`
4646
IconButton.propTypes = IconButtonPropTypes
4747

4848
IconButton.defaultProps = {
49-
variant: 'standard'
49+
variant: 'standard',
50+
size: 'medium'
5051
}
5152

5253
export default IconButton

0 commit comments

Comments
 (0)