mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
chore(link): custom variant improved
This commit is contained in:
parent
7081b41cbb
commit
241b4bd1ab
@ -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 = () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user