Skip to content

Commit

Permalink
feat(IconButton): [IconButton] support IconProps
Browse files Browse the repository at this point in the history
  • Loading branch information
ZouYouShun authored and 233mawile-rc committed Apr 18, 2022
1 parent fc6d8ec commit 4febee3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ type RcIconButtonProps = {
* not have fake border on `inverse` and `contained` variant in `highContrast` theme
*/
disabledFakeBorder?: boolean;
/**
* pass props to below Icon component
*/
IconProps?: RcIconProps;
} & RcIconButtonDeprecatedProps &
Pick<
RcIconProps,
Expand All @@ -88,6 +92,7 @@ const _RcIconButton = memo(

const {
buttonRef = ref,
IconProps,
className,
classes: classesProp,
children,
Expand Down Expand Up @@ -157,6 +162,7 @@ const _RcIconButton = memo(
className={classes!.icon}
loading={loading}
CircularProgressProps={CircularProgressProps}
{...IconProps}
>
{children as string}
</RcIcon>
Expand Down
2 changes: 1 addition & 1 deletion sync-github.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"latestCommitSHA": "d9561d6cdc5ff8d26edcb053c188e27e94cf7ea5"
"latestCommitSHA": "beed4ca0fbb3ab2e51014fa129584ed085225613"
}

0 comments on commit 4febee3

Please sign in to comment.