Capítulo 58 de 147

Chapter 58: Stroke width

Core Idea

Learn how to adjust the stroke width of icons in your Solid 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-solid/icons/folder-lock';

function App() {
  return (
    <div class="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

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