Awesome
Phosphor Icons for Compose Multiplatform
A Kotlin Multiplatform library for using Phosphor Icons in Compose Multiplatform.
Install
This library supports these platforms:
- Android
- iOS
- Desktop (JVM)
- Web (JS / WasmJS)
In your Kotlin module:
implementation("com.adamglin:phosphor-icon:$version")
Usage
Icon(imageVector = PhosphorIcons.Bold.AirTrafficControl, contentDescription = null)
Versions
lib | phosphor-icon | CMP | Kotlin |
---|---|---|---|
1.0.0 | 2.1.0 | 1.7.1 | 2.0.21 |
Build By Yourself
kotlinc -script run.main.kts
what's the script do?
- download phosphor-icons-zip
- unzip it
- reset all path's default size
- convert svg to compose path
this script will generate all icons in phosphor/src/commainMain/kotlin