Back to Lucide

Lucide for Astro

docs/guide/astro/index.md

1.14.01.5 KB
Original Source
<script setup> import OverviewLink from '../../.vitepress/theme/components/base/OverviewLink.vue' import OverviewLinkGrid from '../../.vitepress/theme/components/base/OverviewLinkGrid.vue' import { astroSidebar } from '../../.vitepress/sidebar/astro' </script> <!--@include: ../../../docs/images/package-logos/lucide-astro.svg -->

Lucide for Astro

Astro components for Lucide icons that work perfectly with Astro's island architecture and multi-framework support. Each icon is an Astro component that renders as an inline SVG, providing excellent performance for static sites and server-side rendering scenarios.

List of features:

  • Easy to Use: Import icons as Astro components and use them directly in your Astro application.
  • Customizable: Adjust size, color, and other properties via props.
  • Tree-shakable: Integrate seamlessly with Astro's component islands and partial hydration
  • TypeScript Support: Fully typed components for better developer experience.

Overview

<OverviewLinkGrid> <OverviewLink v-for="item in astroSidebar[0].items.slice(1)" :key="item.link" :href="item.link" :title="item.text" :desc="item.desc"/> </OverviewLinkGrid>

Basics

{{''}}

<OverviewLinkGrid> <OverviewLink v-for="item in astroSidebar[1].items" :key="item.link" :href="item.link" :title="item.text" :desc="item.desc"/> </OverviewLinkGrid>

Advanced

{{''}}

<OverviewLinkGrid> <OverviewLink v-for="item in astroSidebar[2].items" :key="item.link" :href="item.link" :title="item.text" :desc="item.desc"/> </OverviewLinkGrid>