2023-12-24 13:29:05 +01:00
|
|
|
<script setup>
|
|
|
|
|
import { Sandpack } from 'sandpack-vue3'
|
|
|
|
|
import sandpackTheme from '../../.vitepress/theme/sandpackTheme.json'
|
|
|
|
|
import sizeIconExample from './examples/filled-icon-example/files.ts'
|
|
|
|
|
</script>
|
|
|
|
|
|
2023-10-03 08:21:01 +02:00
|
|
|
# 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:
|
2023-12-24 13:29:05 +01:00
|
|
|
<Sandpack
|
|
|
|
|
template="react"
|
|
|
|
|
:theme="sandpackTheme"
|
|
|
|
|
:files="sizeIconExample"
|
|
|
|
|
:customSetup='{
|
|
|
|
|
dependencies: {
|
|
|
|
|
"lucide-react": "latest"
|
|
|
|
|
}
|
|
|
|
|
}'
|
|
|
|
|
:options="{
|
|
|
|
|
editorHeight: 480,
|
|
|
|
|
editorWidthPercentage: 60,
|
|
|
|
|
}"
|
|
|
|
|
/>
|
2023-10-03 08:21:01 +02:00
|
|
|
|
|
|
|
|
## Will Lucide have fills in the future?
|
|
|
|
|
|
2023-12-24 13:29:05 +01:00
|
|
|
This feature has been requested several times and discussion is happening at [#458](https://github.com/lucide-icons/lucide/discussions/458).
|