package form import "github.com/onsonr/nebula/ui/layout" // Form is a standard form styled like a card templ Form(action string, method string, submit templ.Component, progress string, enableCancel bool) {
{ children... }
if enableCancel { Cancel } @submit
} templ NameInput() { @layout.Rows() { } } templ HandleInput() {
} templ CodeInput(id string) { } // Hidden input and button which calls a javascript function to generate a passkey templ PasskeyInput(id string) { @CredentialsScripts() Create PassKey } templ TurnstileWidget(sitekey string) { if sitekey != "" {
} } templ Submit(text string) { { text } }