shadcn-templ 2.0 beta. Switch to templUI v1
1.7k

June 2025 - v0.80.0

Release notes for v0.80.0.

Added

  • Complete framework decoupling - templUI components now expose clean window.templUI.* APIs instead of hardcoded HTMX event listeners
  • Add comprehensive framework integration documentation with examples for HTMX, Datastar, and manual initialization
  • Add Gopher mascot image and enhance features section with detailed framework-agnostic benefits
  • Enhance ‘How To Use’ documentation with structured sections and detailed integration guides
  • Add performance notes explaining HTMX vs Datastar trade-offs (targeted vs global re-initialization)
  • Add submenus to documentation navigation for better discoverability
  • ๐Ÿ“ˆ Better Performance: Targeted re-initialization where supported (HTMX)

Changed

  • Improve ESLint configuration for JavaScript files for better development experience
  • Clean component APIs - all components now follow consistent initAllComponents(root) pattern
  • ๐ŸŽฏ Framework Agnostic: Works with HTMX, Datastar, Alpine.js, or any framework
  • ๐Ÿ”ฎ Future Proof: Ready for whatever hypermedia framework comes next
  • ๐Ÿงน Cleaner APIs: Consistent component interfaces across the board
  • ๐Ÿงช Easier Testing: No framework dependencies in component code
  • ๐Ÿš€ Broader Adoption: Not tied to specific ecosystems (thanks everyone who provided feedback on RFC discussion; thanks @vague2k for honest developer experience perspective; thanks @delaneyj (Datastar author) for collaboration insights; thanks @chris-perardi for startup use case validation; thanks @glsubri for thoughtful component API feedback)
  • This change represents templUI’s evolution from an HTMX-focused library to a truly universal Go/templ component system! ๐ŸŽ‰
  • ๐Ÿ“– Migration Guide: Framework Integration Docs
  • This release is a bit radical โ€“ but it lays the foundation for a cleaner, framework-agnostic future._

Removed

  • ๐Ÿ”ฅ BREAKING CHANGES: templUI is now completely framework-agnostic! Works seamlessly with HTMX, Datastar, or any hypermedia framework.

  • Remove HTMX-specific props from components (HxGet, HxPost, etc.) - use templ.Attributes instead for maximum flexibility
  • _Note: Since templUI is pre-v1.0, I’m intentionally moving fast and breaking things to get the architecture right. That means: yes, there might be bugs โ€“ and theyโ€™ll get fixed fast. If anything broke for you because of this change: sorry! Let me know and Iโ€™ll patch it ASAP.

Fixed

  • Fix form component docs: Fixed select box href typo (thanks @jaingounchained) (thanks @jaingounchained for documentation fixes)

Released in v0.80.0.