--- title: Filled Icons - Svelte description: Learn how to use fills with Lucide icons in your Svelte application, and the limitations of using fills with Lucide icons. --- # Filled Icons Fills are officially not supported. However, all SVG properties are available on all icons. Fill can still be used and will work fine on certain icons. Example with stars: ::: sandpack {template=vite-svelte showTabs=false editorHeight=480 editorWidthPercentage=60} ```svelte src/App.svelte [active]
{#each items as item} {/each}
``` ```css src/icon.css .star-rating { position: relative; } .stars { display: flex; gap: 4px; } .rating { position: absolute; top: 0; } ``` :::