Skip to content

Commit

Permalink
Add target prop for react
Browse files Browse the repository at this point in the history
  • Loading branch information
Lsimmons98 committed Dec 23, 2024
1 parent abbab7a commit 064d9c4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type CircleIconButtonProps = {
onClick?: React.MouseEventHandler<HTMLElement>,
newWindow?: boolean,
type?: 'button' | 'submit' | 'reset' | undefined,
target?: string
variant?: 'primary' | 'secondary' | 'link',
}

Expand All @@ -36,6 +37,7 @@ const CircleIconButton = (props: CircleIconButtonProps): React.ReactElement => {
loading = false,
onClick = noop,
type,
target,
link,
newWindow,
variant,
Expand Down Expand Up @@ -66,6 +68,7 @@ const CircleIconButton = (props: CircleIconButtonProps): React.ReactElement => {
loading={loading}
newWindow={newWindow}
onClick={onClick}
target={target}
text={null}
variant={variant}
>
Expand Down

0 comments on commit 064d9c4

Please sign in to comment.