Added fwt components
This commit is contained in:
parent
b7409d1c13
commit
b2cbd947c5
30 changed files with 852 additions and 0 deletions
3
fwt/components/Link/Link.sass
Normal file
3
fwt/components/Link/Link.sass
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
a
|
||||
text-decoration: none
|
||||
color: inherit
|
||||
16
fwt/components/Link/Link.tsx
Normal file
16
fwt/components/Link/Link.tsx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue