shadcn-templ
shadcn/ui ported to Go and templ: 52 components, 27 blocks, its own CLI
Tier A · StrongComponent LibraryRegistryBlock Collectionshadcn-templ.com

shadcn-templ is an unofficial community port of shadcn/ui for Go's templ templating language, built by Axel Adrian. It ships 52 UI components and 27 blocks through a registry.json and a Go CLI, so you copy source into your project instead of taking a dependency. Styling is Tailwind v4 with CSS variables; interactivity is vanilla JavaScript rather than React. Version 2.0 is in beta and adds theming presets, charts and a Typeset section.
go install github.com/axadrn/shadcn-templ/v2/cmd/shadcn-templ@latest && shadcn-templ init -t templ && shadcn-templ add card && templ generate && go mod tidyFor an agent
Reach for this the moment a Go project needs a UI and the alternative is hand-writing templ markup - it is the closest thing to shadcn/ui parity outside the React world, and because the components are copied into the repo you can edit them freely. Do not run `npx shadcn add` against it; the CLI is a separate Go binary (`shadcn-templ add <name>`) and every add must be followed by `templ generate` and `go mod tidy` or the build fails with missing generated _templ.go files. Read https://raw.githubusercontent.com/axadrn/shadcn-templ/main/registry.json to enumerate exactly what exists - the site's own /registry.json 404s, and the registry file is the only reliable list of the 52 UI items plus 27 blocks. Interactivity is vanilla JS, not Radix, so accessibility is claimed rather than inherited - verify keyboard and focus behaviour on dialogs and menus yourself.
Why it is here. Go and templ teams had no credible shadcn equivalent; this one is MIT, pushed daily, at 1.7k stars, and it mirrors the upstream component names closely enough that shadcn knowledge and prompts transfer directly.
Facts
- License
- MIT
- Pricing
- Free, Open source
- Framework
- Go / templ, Vanilla JS
- Styling
- Tailwind CSS v4, CSS custom properties
- Distribution
- shadcn registry, CLI installer, GitHub repository, Copy-paste snippet
- Platform
- Web
- Content type
- Code, Design tokens / theme files
- Agent readiness
- Machine-readable registry item, CLI installable, Readable open source, Structured documentation
- Accessibility
- Accessible, Keyboard navigable
- Maturity
- Actively maintained
- GitHub stars
- 1,708
Components it ships
52 totalHelps you build
6Templates
27- dashboard-01 · A dashboard with sidebar, charts and data table.
- sidebar-01 · A simple sidebar with navigation grouped by section.
- sidebar-02 · A sidebar with collapsible sections.
- sidebar-03 · A sidebar with submenus.
- sidebar-04 · A floating sidebar with submenus.
- sidebar-05 · A sidebar with collapsible submenus.
- sidebar-06 · A sidebar with submenus as dropdowns.
- sidebar-07 · A sidebar that collapses to icons.
- sidebar-08 · An inset sidebar with secondary navigation.
- sidebar-09 · Collapsible nested sidebars.
- sidebar-10 · A sidebar in a popover.
- sidebar-11 · A sidebar with a collapsible file tree.
- sidebar-12 · A sidebar with a calendar.
- sidebar-13 · A sidebar in a dialog.
- sidebar-14 · A sidebar on the right.
- sidebar-15 · A left and right sidebar.
- sidebar-16 · A sidebar with a sticky site header.
- login-01 · A simple login form.
- login-02 · A two column login page with a cover image.
- login-03 · A login page with a muted background color.
- login-04 · A login page with form and image.
- login-05 · A simple email-only login page.
- signup-01 · A simple signup form.
- signup-02 · A two column signup page with a cover image.
- signup-03 · A signup page with a muted background color.
- signup-04 · A signup page with form and image.
- signup-05 · A simple signup form with social providers.
Notable for
- shadcn/ui parity for Go + templ
- registry.json with 52 UI items and 27 blocks
- own Go CLI: shadcn-templ init / add
- Tailwind v4 with theming presets
- dashboard-01 plus 16 sidebar, 5 login and 5 signup blocks
Provenance
Verified 2026-08-15. HTTP 200. https://shadcn-templ.com/, https://shadcn-templ.com/docs/components, https://shadcn-templ.com/docs/installation, https://shadcn-templ.com/blocks, https://raw.githubusercontent.com/axadrn/shadcn-templ/main/registry.json, gh api repos/axadrn/shadcn-templ
Also in Component Libraries
6- Ark UI · 49 headless components with one API across React, Vue, Solid and Svelte
- Astryx · Meta's open-source React + StyleX design system, 150+ components and 42 templates
- Chakra UI · 114 accessible React components with a token-driven styling system
- Coss UI · Cal.com's design system: 60 Base UI primitives shipped as a shadcn registry
- daisyUI · 68 pure-CSS Tailwind components as semantic class names, MIT, with 35 built-in themes
- GPUI Component · 60+ Rust desktop UI components for GPUI, with a 200K-line code editor and charts