refactor: lucide icons via astro-icon
This commit is contained in:
parent
c4b6e75915
commit
6764644c2e
10 changed files with 827 additions and 56 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
import { ChevronDown } from 'lucide-react'
|
||||
import { Icon } from 'astro-icon/components'
|
||||
import TableOfContentsHeading from './TableOfContentsHeading.astro'
|
||||
|
||||
export interface Heading {
|
||||
|
@ -41,8 +41,9 @@ function buildToc(headings: Heading[]): Heading[] {
|
|||
class="flex cursor-pointer items-center justify-between text-xl font-semibold"
|
||||
>
|
||||
Table of Contents
|
||||
<ChevronDown
|
||||
className="size-5 transition-transform group-open:rotate-180"
|
||||
<Icon
|
||||
name="lucide:chevron-down"
|
||||
class="size-5 transition-transform group-open:rotate-180"
|
||||
/>
|
||||
</summary>
|
||||
<nav>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue