Skip to content
G

Gomponents

HTML components in pure Go, that render to HTML 5

Open source

#1551in Developer Tools
0In stores

Description

gomponents is a library for building HTML components in pure Go. You write HTML as Go functions, such as Nav, Ol, Li and A, and the library…

Highlights

  • HTML components written as Go functions
  • Renders to HTML 5
  • Conditional and mapped components
  • Starter kit and examples
  • HTML-to-gomponents converters

Ratings & Reviews

No ratings yet

Be the first to rate Gomponents.

People also visit

H

htmgo

Build simple and scalable systems with go + htmx

Reading
Launch
G

Go (shadcn-templ)

Go and templ port of shadcn/ui

UI Libraries
Launch
G

golang-popular-libraries

Golang library and framework selection

AI Skills
Get
G

golang-samber-lo

Functional programming helpers for Golang using samber/lo

AI Skills
Get
G

Gallium

Build desktop applications in Go and HTML

Design
Launch
G

golang-samber-mo

Monadic types for Golang using samber/mo

AI Skills
Get

Gomponents FAQ

What is gomponents?

A library for writing HTML components in pure Go, rendering to HTML 5.

How do I install it?

Run go get maragu.dev/gomponents.

How are components written?

As Go functions that return a node, using helpers such as Nav, Ol, Li and A.

How do I show something conditionally?

Use If, or Iff, which takes a callback instead of a value.

Is there a starter?

Yes. The site links a gomponents starter kit on GitHub and examples in the repository.

Can I support the project?

The author invites companies that depend on it to contact him about a one-time or recurring invoice to support its development.

What are the best Gomponents alternatives?

Popular alternatives to Gomponents include Genesis, MyGo and Svelte. See all Gomponents alternatives

Developer Stuff

Badges