import Block from '@techytools/ui/components/Block'; import Link from '@techytools/ui/components/Link'; import useShowStorybookCode from '@techytools/ui/hooks/useShowStorybookCode'; import CanvasStoryPadding from '@techytools/ui/.storybook/components/CanvasStoryPadding'; import CanvasContainer from '@techytools/ui/.storybook/components/CanvasContainer'; export default function (props) { useShowStorybookCode(); return (

Link {' '} component accepts all the props that an anchor tag would. Plus custom ones for analytics/tracking.

Requires only props.href

Link {' '} component accepts all the props that an anchor tag would. Plus custom ones for analytics/tracking.

Requires only props.href

); } export const code = ` This Link will add target="_blank" and rel="noopener noreferrer" // If the href url is to the same domain as the link is currently on, // it will make sure the domain matches your canonical URL meta tag. // If using next/link, tag and passHref will be added automatically.`;