// templui component checkboxcard - version: main installed by templui v0.71.0 package checkboxcard import "git.jmbit.de/jmb/scanfile/server/web/templui/utils" type Props struct { ID string Class string Attributes templ.Attributes Checked bool Disabled bool Required bool Name string Value string } type HeaderProps struct { ID string Class string Attributes templ.Attributes } type DescriptionProps struct { ID string Class string Attributes templ.Attributes } type FooterProps struct { ID string Class string Attributes templ.Attributes } templ CheckboxCard(props ...Props) { {{ var p Props }} if len(props) > 0 { {{ p = props[0] }} } if p.ID == "" { {{ p.ID = utils.RandomID() }} } {{ inputId := p.ID + "-input" }}
{ children... }
} templ Footer(props ...FooterProps) { {{ var p FooterProps }} if len(props) > 0 { {{ p = props[0] }} }