felixscheinost / heroicons

A set of free MIT-licensed high-quality SVG icons for UI development.

Home Page:https://heroicons.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!"
      }
    }
  }
}

About

A set of free MIT-licensed high-quality SVG icons for UI development.

https://heroicons.com

License:MIT License


Languages

Language:Nix 43.6%Language:Kotlin 31.1%Language:JavaScript 25.2%