8 lines
161 B
Plaintext
8 lines
161 B
Plaintext
---
|
|
const {href} = Astro.props
|
|
const isActive = Astro.url.pathname.startsWith(href)
|
|
---
|
|
|
|
<a class:list={[{active: isActive}]} href={href}>
|
|
<slot></slot>
|
|
</a> |