Files
nebula/pkg/wa/input_templ.go

1182 lines
43 KiB
Go
Raw Normal View History

2026-01-01 14:41:31 -05:00
// Code generated by templ - DO NOT EDIT.
2026-01-01 20:49:44 -05:00
// templ: version: v0.3.960
2026-01-01 14:41:31 -05:00
// Code generated by wa-generator. DO NOT EDIT.
// Source: Web Awesome wa-input
package wa
//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
import (
"github.com/a-h/templ"
)
// Inputs collect data from the user.
//
// Web Awesome component: <wa-input>
// InputProps holds all properties for the wa-input component
type InputProps struct {
// The type of input. Works the same as a native <input> element, but only a subset of types are supported. Defaults
// Valid values: "date", "datetime-local", "email", "number", "password", "search", "tel", "text", "time", "url"
Type string `attr:"type"`
// The default value of the form control. Primarily used for resetting the form control.
Value string `attr:"value"`
// The input's size.
// Valid values: "small", "medium", "large"
Size string `attr:"size"`
// The input's visual appearance.
// Valid values: "filled", "outlined", "filled-outlined"
Appearance string `attr:"appearance"`
// Draws a pill-style input with rounded edges.
Pill bool `attr:"pill"`
// The input's label. If you need to display HTML, use the label slot instead.
Label string `attr:"label"`
// The input's hint. If you need to display HTML, use the hint slot instead.
Hint string `attr:"hint"`
// Adds a clear button when the input is not empty.
WithClear bool `attr:"with-clear"`
// Placeholder text to show as a hint when the input is empty.
Placeholder string `attr:"placeholder"`
// Makes the input readonly.
Readonly bool `attr:"readonly"`
// Adds a button to toggle the password's visibility. Only applies to password types.
PasswordToggle bool `attr:"password-toggle"`
// Determines whether or not the password is currently visible. Only applies to password input types.
PasswordVisible bool `attr:"password-visible"`
// Hides the browser's built-in increment/decrement spin buttons for number inputs.
WithoutSpinButtons bool `attr:"without-spin-buttons"`
// Makes the input a required field.
Required bool `attr:"required"`
// A regular expression pattern to validate input against.
Pattern string `attr:"pattern"`
// The minimum length of input that will be considered valid.
Minlength float64 `attr:"minlength"`
// The maximum length of input that will be considered valid.
Maxlength float64 `attr:"maxlength"`
// The input's minimum value. Only applies to date and number input types.
Min string `attr:"min"`
// The input's maximum value. Only applies to date and number input types.
Max string `attr:"max"`
// Specifies the granularity that the value must adhere to, or the special value any which means no stepping is
// Valid values: "any"
Step string `attr:"step"`
// Controls whether and how text input is automatically capitalized as it is entered by the user.
// Valid values: "off", "none", "on", "sentences", "words", "characters"
Autocapitalize string `attr:"autocapitalize"`
// Indicates whether the browser's autocorrect feature is on or off.
// Valid values: "off", "on"
Autocorrect string `attr:"autocorrect"`
// Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
Autocomplete string `attr:"autocomplete"`
// Indicates that the input should receive focus on page load.
Autofocus bool `attr:"autofocus"`
// Used to customize the label or icon of the Enter key on virtual keyboards.
// Valid values: "enter", "done", "go", "next", "previous", "search", "send"
Enterkeyhint string `attr:"enterkeyhint"`
// Enables spell checking on the input.
Spellcheck bool `attr:"spellcheck"`
// Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual
// Valid values: "none", "text", "decimal", "numeric", "tel", "search", "email", "url"
Inputmode string `attr:"inputmode"`
// Used for SSR. Will determine if the SSRed component will have the label slot rendered on initial paint.
WithLabel bool `attr:"with-label"`
// Used for SSR. Will determine if the SSRed component will have the hint slot rendered on initial paint.
WithHint bool `attr:"with-hint"`
// Events
// Emitted when the control receives input.
OnInput string `attr:"x-on:input"`
// Emitted when an alteration to the control's value is committed by the user.
OnChange string `attr:"x-on:change"`
// Emitted when the control loses focus.
OnBlur string `attr:"x-on:blur"`
// Emitted when the control gains focus.
OnFocus string `attr:"x-on:focus"`
// Emitted when the clear button is activated.
OnClear string `attr:"x-on:wa-clear"`
// Emitted when the form control has been checked for validity and its constraints aren't satisfied.
OnInvalid string `attr:"x-on:wa-invalid"`
// Slots contains named slot content
Slots InputSlots
// Attrs contains additional HTML attributes
Attrs templ.Attributes
}
// InputSlots holds named slot content for the component
type InputSlots struct {
// The input's label. Alternatively, you can use the label attribute.
Label templ.Component
// An element, such as <wa-icon>, placed at the start of the input control.
Start templ.Component
// An element, such as <wa-icon>, placed at the end of the input control.
End templ.Component
// An icon to use in lieu of the default clear icon.
ClearIcon templ.Component
// An icon to use in lieu of the default show password icon.
ShowPasswordIcon templ.Component
// An icon to use in lieu of the default hide password icon.
HidePasswordIcon templ.Component
// Text that describes how to use the input. Alternatively, you can use the hint attribute.
Hint templ.Component
}
// InputBuilder provides a fluent API for constructing InputProps
type InputBuilder struct {
props InputProps
}
// NewInput creates a new builder for wa-input
func NewInput() *InputBuilder {
return &InputBuilder{}
}
// Type sets the type attribute
// The type of input. Works the same as a native <input> element, but only a subset of types are supported. Defaults
func (b *InputBuilder) Type(v string) *InputBuilder {
b.props.Type = v
return b
}
// Value sets the value attribute
// The default value of the form control. Primarily used for resetting the form control.
func (b *InputBuilder) Value(v string) *InputBuilder {
b.props.Value = v
return b
}
// Size sets the size attribute
// The input's size.
func (b *InputBuilder) Size(v string) *InputBuilder {
b.props.Size = v
return b
}
// Appearance sets the appearance attribute
// The input's visual appearance.
func (b *InputBuilder) Appearance(v string) *InputBuilder {
b.props.Appearance = v
return b
}
// Pill sets the pill attribute
// Draws a pill-style input with rounded edges.
func (b *InputBuilder) Pill(v bool) *InputBuilder {
b.props.Pill = v
return b
}
// Label sets the label attribute
// The input's label. If you need to display HTML, use the label slot instead.
func (b *InputBuilder) Label(v string) *InputBuilder {
b.props.Label = v
return b
}
// Hint sets the hint attribute
// The input's hint. If you need to display HTML, use the hint slot instead.
func (b *InputBuilder) Hint(v string) *InputBuilder {
b.props.Hint = v
return b
}
// WithClear sets the with-clear attribute
// Adds a clear button when the input is not empty.
func (b *InputBuilder) WithClear(v bool) *InputBuilder {
b.props.WithClear = v
return b
}
// Placeholder sets the placeholder attribute
// Placeholder text to show as a hint when the input is empty.
func (b *InputBuilder) Placeholder(v string) *InputBuilder {
b.props.Placeholder = v
return b
}
// Readonly sets the readonly attribute
// Makes the input readonly.
func (b *InputBuilder) Readonly(v bool) *InputBuilder {
b.props.Readonly = v
return b
}
// PasswordToggle sets the password-toggle attribute
// Adds a button to toggle the password's visibility. Only applies to password types.
func (b *InputBuilder) PasswordToggle(v bool) *InputBuilder {
b.props.PasswordToggle = v
return b
}
// PasswordVisible sets the password-visible attribute
// Determines whether or not the password is currently visible. Only applies to password input types.
func (b *InputBuilder) PasswordVisible(v bool) *InputBuilder {
b.props.PasswordVisible = v
return b
}
// WithoutSpinButtons sets the without-spin-buttons attribute
// Hides the browser's built-in increment/decrement spin buttons for number inputs.
func (b *InputBuilder) WithoutSpinButtons(v bool) *InputBuilder {
b.props.WithoutSpinButtons = v
return b
}
// Required sets the required attribute
// Makes the input a required field.
func (b *InputBuilder) Required(v bool) *InputBuilder {
b.props.Required = v
return b
}
// Pattern sets the pattern attribute
// A regular expression pattern to validate input against.
func (b *InputBuilder) Pattern(v string) *InputBuilder {
b.props.Pattern = v
return b
}
// Minlength sets the minlength attribute
// The minimum length of input that will be considered valid.
func (b *InputBuilder) Minlength(v float64) *InputBuilder {
b.props.Minlength = v
return b
}
// Maxlength sets the maxlength attribute
// The maximum length of input that will be considered valid.
func (b *InputBuilder) Maxlength(v float64) *InputBuilder {
b.props.Maxlength = v
return b
}
// Min sets the min attribute
// The input's minimum value. Only applies to date and number input types.
func (b *InputBuilder) Min(v string) *InputBuilder {
b.props.Min = v
return b
}
// Max sets the max attribute
// The input's maximum value. Only applies to date and number input types.
func (b *InputBuilder) Max(v string) *InputBuilder {
b.props.Max = v
return b
}
// Step sets the step attribute
// Specifies the granularity that the value must adhere to, or the special value any which means no stepping is
func (b *InputBuilder) Step(v string) *InputBuilder {
b.props.Step = v
return b
}
// Autocapitalize sets the autocapitalize attribute
// Controls whether and how text input is automatically capitalized as it is entered by the user.
func (b *InputBuilder) Autocapitalize(v string) *InputBuilder {
b.props.Autocapitalize = v
return b
}
// Autocorrect sets the autocorrect attribute
// Indicates whether the browser's autocorrect feature is on or off.
func (b *InputBuilder) Autocorrect(v string) *InputBuilder {
b.props.Autocorrect = v
return b
}
// Autocomplete sets the autocomplete attribute
// Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
func (b *InputBuilder) Autocomplete(v string) *InputBuilder {
b.props.Autocomplete = v
return b
}
// Autofocus sets the autofocus attribute
// Indicates that the input should receive focus on page load.
func (b *InputBuilder) Autofocus(v bool) *InputBuilder {
b.props.Autofocus = v
return b
}
// Enterkeyhint sets the enterkeyhint attribute
// Used to customize the label or icon of the Enter key on virtual keyboards.
func (b *InputBuilder) Enterkeyhint(v string) *InputBuilder {
b.props.Enterkeyhint = v
return b
}
// Spellcheck sets the spellcheck attribute
// Enables spell checking on the input.
func (b *InputBuilder) Spellcheck(v bool) *InputBuilder {
b.props.Spellcheck = v
return b
}
// Inputmode sets the inputmode attribute
// Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual
func (b *InputBuilder) Inputmode(v string) *InputBuilder {
b.props.Inputmode = v
return b
}
// WithLabel sets the with-label attribute
// Used for SSR. Will determine if the SSRed component will have the label slot rendered on initial paint.
func (b *InputBuilder) WithLabel(v bool) *InputBuilder {
b.props.WithLabel = v
return b
}
// WithHint sets the with-hint attribute
// Used for SSR. Will determine if the SSRed component will have the hint slot rendered on initial paint.
func (b *InputBuilder) WithHint(v bool) *InputBuilder {
b.props.WithHint = v
return b
}
// OnInput sets the handler for input event
// Emitted when the control receives input.
func (b *InputBuilder) OnInput(handler string) *InputBuilder {
b.props.OnInput = handler
return b
}
// OnChange sets the handler for change event
// Emitted when an alteration to the control's value is committed by the user.
func (b *InputBuilder) OnChange(handler string) *InputBuilder {
b.props.OnChange = handler
return b
}
// OnBlur sets the handler for blur event
// Emitted when the control loses focus.
func (b *InputBuilder) OnBlur(handler string) *InputBuilder {
b.props.OnBlur = handler
return b
}
// OnFocus sets the handler for focus event
// Emitted when the control gains focus.
func (b *InputBuilder) OnFocus(handler string) *InputBuilder {
b.props.OnFocus = handler
return b
}
// OnClear sets the handler for wa-clear event
// Emitted when the clear button is activated.
func (b *InputBuilder) OnClear(handler string) *InputBuilder {
b.props.OnClear = handler
return b
}
// OnInvalid sets the handler for wa-invalid event
// Emitted when the form control has been checked for validity and its constraints aren't satisfied.
func (b *InputBuilder) OnInvalid(handler string) *InputBuilder {
b.props.OnInvalid = handler
return b
}
// LabelSlot sets the label slot content
// The input's label. Alternatively, you can use the label attribute.
func (b *InputBuilder) LabelSlot(c templ.Component) *InputBuilder {
b.props.Slots.Label = c
return b
}
// StartSlot sets the start slot content
// An element, such as <wa-icon>, placed at the start of the input control.
func (b *InputBuilder) StartSlot(c templ.Component) *InputBuilder {
b.props.Slots.Start = c
return b
}
// EndSlot sets the end slot content
// An element, such as <wa-icon>, placed at the end of the input control.
func (b *InputBuilder) EndSlot(c templ.Component) *InputBuilder {
b.props.Slots.End = c
return b
}
// ClearIconSlot sets the clear-icon slot content
// An icon to use in lieu of the default clear icon.
func (b *InputBuilder) ClearIconSlot(c templ.Component) *InputBuilder {
b.props.Slots.ClearIcon = c
return b
}
// ShowPasswordIconSlot sets the show-password-icon slot content
// An icon to use in lieu of the default show password icon.
func (b *InputBuilder) ShowPasswordIconSlot(c templ.Component) *InputBuilder {
b.props.Slots.ShowPasswordIcon = c
return b
}
// HidePasswordIconSlot sets the hide-password-icon slot content
// An icon to use in lieu of the default hide password icon.
func (b *InputBuilder) HidePasswordIconSlot(c templ.Component) *InputBuilder {
b.props.Slots.HidePasswordIcon = c
return b
}
// HintSlot sets the hint slot content
// Text that describes how to use the input. Alternatively, you can use the hint attribute.
func (b *InputBuilder) HintSlot(c templ.Component) *InputBuilder {
b.props.Slots.Hint = c
return b
}
// Attr adds a custom HTML attribute
func (b *InputBuilder) Attr(name, value string) *InputBuilder {
if b.props.Attrs == nil {
b.props.Attrs = templ.Attributes{}
}
b.props.Attrs[name] = value
return b
}
// Attrs merges multiple attributes
func (b *InputBuilder) Attrs(attrs templ.Attributes) *InputBuilder {
if b.props.Attrs == nil {
b.props.Attrs = templ.Attributes{}
}
for k, v := range attrs {
b.props.Attrs[k] = v
}
return b
}
// Props returns the built properties
func (b *InputBuilder) Props() InputProps {
return b.props
}
// Build returns the props (alias for Props for semantic clarity)
func (b *InputBuilder) Build() InputProps {
return b.props
}
// Input renders the wa-input component
func Input(props InputProps) templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
}()
}
ctx = templ.InitializeContext(ctx)
templ_7745c5c3_Var1 := templ.GetChildren(ctx)
if templ_7745c5c3_Var1 == nil {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<wa-input")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
if props.Type != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, " type=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var2 string
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(props.Type)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 460, Col: 20}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Value != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, " value=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var3 string
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(props.Value)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 463, Col: 22}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Size != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, " size=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var4 string
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(props.Size)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 466, Col: 20}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Appearance != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, " appearance=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var5 string
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(props.Appearance)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 469, Col: 32}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Pill {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 10, " pill")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Label != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, " label=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var6 string
templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(props.Label)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 475, Col: 22}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Hint != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, " hint=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var7 string
templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(props.Hint)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 478, Col: 20}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.WithClear {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, " with-clear")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Placeholder != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, " placeholder=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var8 string
templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(props.Placeholder)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 484, Col: 34}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Readonly {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 18, " readonly")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.PasswordToggle {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, " password-toggle")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.PasswordVisible {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 20, " password-visible")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.WithoutSpinButtons {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 21, " without-spin-buttons")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Required {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, " required")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Pattern != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 23, " pattern=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var9 string
templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(props.Pattern)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 502, Col: 26}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Minlength != 0 {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 25, " minlength=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var10 string
templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(templ.Sprintf("%v", props.Minlength))
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 505, Col: 51}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 26, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Maxlength != 0 {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, " maxlength=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var11 string
templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(templ.Sprintf("%v", props.Maxlength))
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 508, Col: 51}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 28, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Min != 0 {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, " min=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var12 string
templ_7745c5c3_Var12, templ_7745c5c3_Err = templ.JoinStringErrs(templ.Sprintf("%v", props.Min))
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 511, Col: 39}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var12))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Max != 0 {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, " max=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var13 string
templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(templ.Sprintf("%v", props.Max))
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 514, Col: 39}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 32, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Step != 0 {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 33, " step=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var14 string
templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(templ.Sprintf("%v", props.Step))
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 517, Col: 41}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 34, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Autocapitalize != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 35, " autocapitalize=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var15 string
templ_7745c5c3_Var15, templ_7745c5c3_Err = templ.JoinStringErrs(props.Autocapitalize)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 520, Col: 40}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var15))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 36, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Autocorrect != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 37, " autocorrect=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var16 string
templ_7745c5c3_Var16, templ_7745c5c3_Err = templ.JoinStringErrs(props.Autocorrect)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 523, Col: 34}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var16))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 38, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Autocomplete != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 39, " autocomplete=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var17 string
templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(props.Autocomplete)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 526, Col: 36}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 40, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Autofocus {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 41, " autofocus")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Enterkeyhint != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 42, " enterkeyhint=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var18 string
templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(props.Enterkeyhint)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 532, Col: 36}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 43, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Spellcheck {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 44, " spellcheck")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Inputmode != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 45, " inputmode=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var19 string
templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(props.Inputmode)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 538, Col: 30}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 46, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.WithLabel {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 47, " with-label")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.WithHint {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 48, " with-hint")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.OnInput != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 49, " x-on:input=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var20 string
templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(props.OnInput)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 547, Col: 29}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 50, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.OnChange != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 51, " x-on:change=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var21 string
templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinStringErrs(props.OnChange)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 550, Col: 31}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 52, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.OnBlur != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 53, " x-on:blur=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var22 string
templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinStringErrs(props.OnBlur)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 553, Col: 27}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 54, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.OnFocus != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 55, " x-on:focus=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var23 string
templ_7745c5c3_Var23, templ_7745c5c3_Err = templ.JoinStringErrs(props.OnFocus)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 556, Col: 29}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var23))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 56, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.OnClear != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 57, " x-on:wa-clear=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var24 string
templ_7745c5c3_Var24, templ_7745c5c3_Err = templ.JoinStringErrs(props.OnClear)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 559, Col: 32}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var24))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 58, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.OnInvalid != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 59, " x-on:wa-invalid=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var25 string
templ_7745c5c3_Var25, templ_7745c5c3_Err = templ.JoinStringErrs(props.OnInvalid)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/wa/input.templ`, Line: 562, Col: 36}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var25))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 60, "\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templ.RenderAttributes(ctx, templ_7745c5c3_Buffer, props.Attrs)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 61, ">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
if props.Slots.Label != nil {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 62, "<div slot=\"label\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = props.Slots.Label.Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 63, "</div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Slots.Start != nil {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 64, "<div slot=\"start\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = props.Slots.Start.Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 65, "</div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Slots.End != nil {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 66, "<div slot=\"end\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = props.Slots.End.Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 67, "</div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Slots.ClearIcon != nil {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 68, "<div slot=\"clear-icon\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = props.Slots.ClearIcon.Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 69, "</div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Slots.ShowPasswordIcon != nil {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 70, "<div slot=\"show-password-icon\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = props.Slots.ShowPasswordIcon.Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 71, "</div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Slots.HidePasswordIcon != nil {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 72, "<div slot=\"hide-password-icon\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = props.Slots.HidePasswordIcon.Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 73, "</div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if props.Slots.Hint != nil {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 74, "<div slot=\"hint\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = props.Slots.Hint.Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 75, "</div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templ_7745c5c3_Var1.Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 76, "</wa-input>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return nil
})
}
// InputFunc renders with a builder function for inline configuration
func InputFunc(fn func(*InputBuilder)) templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
}()
}
ctx = templ.InitializeContext(ctx)
templ_7745c5c3_Var26 := templ.GetChildren(ctx)
if templ_7745c5c3_Var26 == nil {
templ_7745c5c3_Var26 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
b := NewInput()
fn(b)
templ_7745c5c3_Var27 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
}()
}
ctx = templ.InitializeContext(ctx)
templ_7745c5c3_Err = templ_7745c5c3_Var26.Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return nil
})
templ_7745c5c3_Err = Input(b.Props()).Render(templ.WithChildren(ctx, templ_7745c5c3_Var27), templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return nil
})
}
var _ = templruntime.GeneratedTemplate