Capítulo 50 de 147

Chapter 50: With Lucide Lab or custom icons

Core Idea

Learn how to use Lucide Lab or custom icons in your Svelte applications using the Icon component.

Key Concepts

  • Using the Icon component

Code Examples

<script>
import { Icon } from '@lucide/svelte';
import { pear, sausage } from '@lucide/lab';
</script>

<Icon iconNode={pear} />
<Icon iconNode={sausage} color="red"/>
  • What it demonstrates: With Lucide Lab or custom icons usage pattern from the official Lucide docs.

Key Takeaways

  1. Using the Icon component

Connects To

  • Svelte: part of the Svelte section of the Lucide docs.
  • Lucide for Svelte: overview page for this section.