Skip to content

Link

Used to provide accessible navigation.

// Import component
import { Link } from '@fintech-sandpit/ui/react';
// Import styles (optional)
import '@fintech-sandpit/ui/style/components/link.css';
return (
<Link href="/">
Home
</Link>
);
// Import component
import { Link } from '@fintech-sandpit/ui/react';
// Import styles (optional)
import '@fintech-sandpit/ui/style/components/link.css';
// Import Next.js link
import NextLink from 'next/link';
return (
<Link asChild>
<NextLink href="/">
Home
</NextLink>
</Link>
);
NameTypeRequiredDefaultDescription
hrefstringYesvalueThe URL to navigate to
asChildbooleanfalseUse the provided child element as the default rendered element, combining their props and behavior