(frontend) add external link support to LinkButton component

Enhanced LinkButton with target props for external link usage.
This commit is contained in:
lebaudantoine
2025-04-04 14:41:11 +02:00
committed by aleb_the_flash
parent 3ee33fc2ec
commit c26b1b711c
2 changed files with 2 additions and 0 deletions

View File

@@ -207,6 +207,7 @@ export const IntroSlider = () => {
{slide.isAvailableInBeta && (
<LinkButton
href={BETA_USERS_FORM_URL}
target="_blank"
tooltip={t('beta.tooltip')}
variant={'primary'}
size={'sm'}

View File

@@ -9,6 +9,7 @@ type LinkButtonProps = RecipeVariantProps<ButtonRecipe> &
TooltipWrapperProps & {
// Use tooltip as description below the button.
description?: boolean
target?: string
}
export const LinkButton = ({