// templui component toggle - version: v0.84.0 installed by templui v0.84.0 package toggle import "git.jmbit.de/jmb/scanfile/server/web/templui/utils" type Props struct { ID string Class string Attributes templ.Attributes Name string Disabled bool Checked bool } templ Toggle(props ...Props) { {{ var p Props }} if len(props) > 0 { {{ p = props[0] }} } if p.ID == "" { {{ p.ID = utils.RandomID() }} } }