✨(frontend) add external link support to LinkButton component
Enhanced LinkButton with target props for external link usage.
This commit is contained in:
committed by
aleb_the_flash
parent
3ee33fc2ec
commit
c26b1b711c
@@ -207,6 +207,7 @@ export const IntroSlider = () => {
|
|||||||
{slide.isAvailableInBeta && (
|
{slide.isAvailableInBeta && (
|
||||||
<LinkButton
|
<LinkButton
|
||||||
href={BETA_USERS_FORM_URL}
|
href={BETA_USERS_FORM_URL}
|
||||||
|
target="_blank"
|
||||||
tooltip={t('beta.tooltip')}
|
tooltip={t('beta.tooltip')}
|
||||||
variant={'primary'}
|
variant={'primary'}
|
||||||
size={'sm'}
|
size={'sm'}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ type LinkButtonProps = RecipeVariantProps<ButtonRecipe> &
|
|||||||
TooltipWrapperProps & {
|
TooltipWrapperProps & {
|
||||||
// Use tooltip as description below the button.
|
// Use tooltip as description below the button.
|
||||||
description?: boolean
|
description?: boolean
|
||||||
|
target?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export const LinkButton = ({
|
export const LinkButton = ({
|
||||||
|
|||||||
Reference in New Issue
Block a user