Skip to content

Commit

Permalink
fix(fuselage): Reintroduce children to IconButton (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh committed May 24, 2023
1 parent e2f7453 commit ff016cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/fuselage/src/components/Button/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const IconButton = forwardRef(
small,
medium,
pressed,
children,
...props
}: IconButtonProps,
ref: Ref<HTMLElement>
Expand Down Expand Up @@ -131,6 +132,7 @@ export const IconButton = forwardRef(
ref={ref}
{...props}
>
{children}
{isValidElement(icon) ? (
icon
) : (
Expand Down

0 comments on commit ff016cc

Please sign in to comment.