New link component

This commit is contained in:
Patrick Alvin Alcala 2025-06-05 18:19:38 +08:00
parent 61d286eecb
commit b76bb491c0

View file

@ -0,0 +1,16 @@
interface Props {
to: string
children?: any
}
export default (props: Props) => {
return (
<>
<a href={props.to} aria-label={`Go to ${props.to}`}>
{props.children}
</a>
</>
)
}