chore(link): custom variant improved

This commit is contained in:
Junior Garcia 2023-01-08 15:59:11 -03:00
parent 7081b41cbb
commit 241b4bd1ab

View File

@ -30,7 +30,7 @@ type MyLinkProps = ExtendVariantProps<LinkProps, VariantProps<typeof customLink>
const MyLink = (props: MyLinkProps) => {
const {link, color, ...otherProps} = props;
return <Link {...otherProps} isExternal className={customLink({color, link})} />;
return <Link {...otherProps} className={customLink({color, link})} isExternal={!!link} />;
};
export const CustomVariant = () => {