Heroicons for kotlinx.html
This is a kotlinx.html
wrapper around Heroicons from Tailwind
Preview and search at Heroicons.com
Currently only JVM is supported but multiplatform support should be easy to add. I just didn't need it yet!
Including in your project
Gradle
repositories {
mavenCentral()
}
dependencies {
implementation("de.felixscheinost:heroicons-kotlinx-jvm:1.0.0")
}
Usage
Example: For the icon academic-cap
in the outline
style the function would be called: heroiconOutlineAcademicCap()
import kotlinx.html.*
import kotlinx.html.stream.appendHTML
import de.felixscheinost.heroicons.heroiconOutlineAcademicCap
System.out.appendHTML().html {
body{
div {
a("https://kotlinlang.org") {
target = ATarget.blank
heroiconOutlineClipboardCopy()
+"Get your certificate!"
}
}
}
}