// templui component inputotp - version: main installed by templui v0.71.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 } type SeparatorProps struct { ID string Class string Attributes templ.Attributes } templ InputOTP(props ...Props) { @Script() {{ var p Props }} if len(props) > 0 { {{ p = props[0] }} }