mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-12 13:38:32 +00:00
54 lines
2.0 KiB
Markdown
54 lines
2.0 KiB
Markdown
---
|
|||
|
|
title: Lucide for Preact
|
||
|
|
description: Lucide provides a Preact icon component library that makes it easy to integrate icons into your Preact applications. Each icon is available as a standalone Preact component, allowing for seamless integration and customization.
|
||
|
|
nextPage:
|
||
|
|
- getting-started
|
||
|
|
---
|
||
|
|
|
||
|
|
<script setup>
|
||
|
|
import OverviewLink from '../../.vitepress/theme/components/base/OverviewLink.vue'
|
||
|
|
import OverviewLinkGrid from '../../.vitepress/theme/components/base/OverviewLinkGrid.vue'
|
||
|
|
import { preactSidebar } from '../../.vitepress/sidebar/preact'
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<!--@include: ../../../docs/images/package-logos/lucide-preact.svg -->
|
||
|
|
|
||
|
|
|
||
|
|
# Lucide for Preact
|
||
|
|
|
||
|
|
Lucide provides a Preact icon component library that makes it easy to integrate icons into your Preact applications.
|
||
|
|
Each icon is available as a standalone Preact component, allowing for seamless integration and customization.
|
||
|
|
|
||
|
|
List of features:
|
||
|
|
- **Easy to Use**: Import icons as Preact components and use them directly in your Preact components with JSX.
|
||
|
|
- **Customizable**: Adjust size, color, and other properties via props.
|
||
|
|
- **Tree-shakable**: Only the icons you use are included in your final bundle
|
||
|
|
- **TypeScript Support**: Fully typed components for better developer experience.
|
||
|
|
|
||
|
|
## Overview
|
||
|
|
|
||
|
|
<OverviewLinkGrid>
|
||
|
|
<OverviewLink v-for="item in preactSidebar[0].items.slice(1)" :key="item.link" :href="item.link" :title="item.text" :desc="item.desc"/>
|
||
|
|
</OverviewLinkGrid>
|
||
|
|
|
||
|
|
### Basics
|
||
|
|
{{''}}
|
||
|
|
|
||
|
|
<OverviewLinkGrid>
|
||
|
|
<OverviewLink v-for="item in preactSidebar[1].items" :key="item.link" :href="item.link" :title="item.text" :desc="item.desc"/>
|
||
|
|
</OverviewLinkGrid>
|
||
|
|
|
||
|
|
### Advanced
|
||
|
|
{{''}}
|
||
|
|
|
||
|
|
<OverviewLinkGrid>
|
||
|
|
<OverviewLink v-for="item in preactSidebar[2].items" :key="item.link" :href="item.link" :title="item.text" :desc="item.desc"/>
|
||
|
|
</OverviewLinkGrid>
|
||
|
|
|
||
|
|
### Resources
|
||
|
|
{{''}}
|
||
|
|
|
||
|
|
<OverviewLinkGrid>
|
||
|
|
<OverviewLink v-for="item in preactSidebar[3].items" :key="item.link" :href="item.link" :title="item.text" :desc="item.desc"/>
|
||
|
|
</OverviewLinkGrid>
|