Chapter 18: Sizing
Core Idea
Learn how to adjust the size of icons in your React application using the size prop or by using CSS.
Key Concepts
- Adjusting the icon size using the
size prop
- Adjusting the icon size via CSS
Code Examples
import { Landmark } from "lucide-react";
function App() {
return (
<div className="app">
<Landmark size={64} />
</div>
);
}
export default App;
- What it demonstrates: Sizing usage pattern from the official Lucide docs.
Key Takeaways
- Adjusting the icon size using the
size prop
- Adjusting the icon size via CSS
Connects To
- React: part of the React section of the Lucide docs.
- Lucide for React: overview page for this section.