// templui component inputotp - version: v0.84.0 installed by templui v0.84.0 package inputotp import ( "git.jmbit.de/jmb/scanfile/server/web/templui/utils" "strconv" ) type Props struct { ID string Class string Attributes templ.Attributes Value string Required bool Name string HasError bool } type GroupProps struct { ID string Class string Attributes templ.Attributes } type SlotProps struct { ID string Class string Attributes templ.Attributes Index int Type string Placeholder string Disabled bool HasError bool } type SeparatorProps struct { ID string Class string Attributes templ.Attributes } templ InputOTP(props ...Props) { {{ var p Props }} if len(props) > 0 { {{ p = props[0] }} }
{ children... }
} templ Group(props ...GroupProps) { {{ var p GroupProps }} if len(props) > 0 { {{ p = props[0] }} }
{ children... }
} templ Slot(props ...SlotProps) { {{ var p SlotProps }} if len(props) > 0 { {{ p = props[0] }} } if p.Type == "" { {{ p.Type = "text" }} }
} templ Separator(props ...SeparatorProps) { {{ var p SeparatorProps }} if len(props) > 0 { {{ p = props[0] }} }
-
} templ Script() { }