aio-tools/fwt/components/Link/Link.tsx

16 lines
255 B
TypeScript

import './Link.sass'
interface Props {
to: string
children?: any
}
export default (props: Props) => {
return (
<>
<a href={props.to} aria-label={`Go to ${props.to}`} data-astro-prefetch>
{props.children}
</a>
</>
)
}