refactor: Refactor registration forms to use UI components

This commit is contained in:
Prad Nukala
2024-12-10 23:41:49 -05:00
parent aa43770bf4
commit e2f24eef8e
31 changed files with 1380 additions and 469 deletions
@@ -0,0 +1,21 @@
package ui
type InputHandleState string
const (
InputHandleStateInitial InputHandleState = "inital"
InputHandleStateValid InputHandleState = "valid"
InputHandleStateInvalid InputHandleState = "invalid"
)
func (s InputHandleState) string() string {
return string(s)
}
templ InputHandle(handle string) {
<sl-input name="handle" placeholder="digitalgold" type="text" label="Handle" minlength="4" maxlength="12" required>
<div slot="prefix">
<sl-icon name="at-sign" library="sonr"></sl-icon>
</div>
</sl-input>
}