Capítulo 46 de 147

Chapter 46: Stroke width

Core Idea

Learn how to adjust the stroke width of icons in your Svelte application using the strokeWidth prop or adjust the strokeWidth appearance using the absoluteStrokeWidth prop.

Key Concepts

  • Adjusting stroke width with strokeWidth prop
  • Absolute stroke width

Code Examples

<script >
import FolderLock from "@lucide/svelte/icons/folder-lock";
</script>

<FolderLock strokeWidth={1} />
  • What it demonstrates: Stroke width usage pattern from the official Lucide docs.

Key Takeaways

  1. Adjusting stroke width with strokeWidth prop
  2. Absolute stroke width

Connects To

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