mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-24 13:05:42 +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 (
|
return (
|
||||||
<Component id={createSlug(headingText)} className='group'>
|
<Component id={createSlug(headingText)} className='group'>
|
||||||
{children}
|
{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>
|
href={`#${createSlug(headingText)}`}>#</Link>
|
||||||
</Component>
|
</Component>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user