Capítulo 19 de 147

Chapter 19: Stroke width

Core Idea

Learn how to adjust the stroke width of icons in your React 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

import { FolderLock } from "lucide-react";

function App() {
  return (
    <div className="app">
      <FolderLock strokeWidth={1} />
    </div>
  );
}

export default App;
  • 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

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