Skip to content

Commit

Permalink
fix(lib/components/buttons): Add target to Button props to open a…
Browse files Browse the repository at this point in the history
… link in new tab (#631)

feat(/lib/components/button): add target to button props to be able to open a link in a new tab

Added the attribute target to the ButtonProps interface. This enables to add target="_blank" to a
button to open the associated link in a new browser tab
  • Loading branch information
fsioni authored Mar 3, 2023
1 parent 8b8d07b commit ed74d13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export interface ButtonProps extends Omit<ComponentProps<'button'>, 'color' | 'r
gradientDuoTone?: keyof ButtonGradientDuoToneColors;
gradientMonochrome?: keyof ButtonGradientColors;
href?: string;
target?: string;
label?: ReactNode;
outline?: boolean;
pill?: boolean;
Expand Down

0 comments on commit ed74d13

Please sign in to comment.