mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-21 20:15:40 +00:00
Updated Heading component
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m35s
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m35s
This commit is contained in:
parent
79843631b4
commit
4bbe6a4ebf
@ -13,7 +13,7 @@ export function Heading({as: Component = 'h1', children = null}: HeadingProps) {
|
||||
return (
|
||||
<Component id={createSlug(headingText)} className='group'>
|
||||
{children}
|
||||
<Link className='ml-1 group-hover:opacity-100 opacity-0 transition-opacity ease-in'
|
||||
<Link className='ml-1.5 group-hover:visible invisible'
|
||||
href={`#${createSlug(headingText)}`}>#</Link>
|
||||
</Component>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user