Capítulo 38 de 147

Chapter 38: Filled Icons

Core Idea

Learn how to use fills with Lucide icons in your Vue application, and the limitations of using fills with Lucide icons.

Code Examples

<script setup>
import { Star, StarHalf } from "@lucide/vue";
import "./icon.css";
</script>

<template>
  <div class="app">
    <div class="star-rating">
      <div class="stars">
        <Star
          v-for="i in 5"
          fill="#111"
          strokeWidth="0"
        />
      </div>
      <div class="stars rating">
        <Star fill="yellow" strokeWidth="0" />
        <Star fill="yellow" strokeWidth="0" />
        <StarHalf fill="yellow" strokeWidth="0" />
      </div>
    </div>
  </div>
</template>
  • What it demonstrates: Filled Icons usage pattern from the official Lucide docs.

Key Takeaways

  1. Learn how to use fills with Lucide icons in your Vue application, and the limitations of using fills with Lucide icons.

Connects To

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