Contributing
Contributions are welcome! See CONTRIBUTING.md in the repository for the full guide.
Quick Setup
Section titled “Quick Setup”git clone https://github.com/larsartmann/templ-components.gitcd templ-componentsnix develop # provides Go, templ, golangci-lintBuild & Test
Section titled “Build & Test”# Full build (regenerate templ first)find . -name '*_templ.go' -print0 | xargs -0 rm && templ generate ./... && go build ./...
# Testsgo test ./...
# Lintgolangci-lint run ./...Key Conventions
Section titled “Key Conventions”- All props structs embed
utils.BaseProps - All root elements propagate
props.Class,props.Attrs,props.ID,props.AriaLabel - Class attributes use
utils.Class()for Tailwind conflict resolution - Every closed-set enum ships an
IsValid()method + test - All inline scripts use
nonceattributes - All components have
dark:variants — enforced by regression tests