package base type SelectProps struct { ID string Label string Name string Description string Class string Size string Required bool Options []SelectOption Attrs templ.Attributes } type SelectOption struct { Label string Value string Selected bool Disabled bool } templ Select(props SelectProps) {
if props.Label != "" { { props.Label } } if props.Description != "" { { props.Description } }
} templ SelectOptions(options []SelectOption) { for i := range options { } }