Skip to content

livghit/TemplIcons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Source Icons as Templ Components

-- still needs to be written .... At the moment only supports Heroicons (made by TailwindCss Creator )

How to use ?

Import it as a module

go get "github.com/livghit/TempIcons"

Use the Icons

package main
import "github.com/livghit/TempIcons/heroicons"

func main(){
  icon := heroicons.AcademicCap()
  icon.Render(context.Background(), os.Stdout)
}


// or just add it inside a templ file

package templates

import "github.com/livghit/TempIcons/heroicons"

templ Layout(title string){
  <html>
    <head>
      <title>{title}</title>
    </head>
    <body>
<button> {{ heroicons.AcademicCap() }} </button>
    </body>
  </html>
}

About

Easy to use Templ Icon Components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages