input

package
v0.5.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package input provides HTML input components with flexible props. The Props type defines attributes for the component, including Hx, Aria, and Data props, along with input-specific fields such as Type, Name, Value, and Placeholder, as well as boolean attributes like Disabled, Required, ReadOnly, and Checked. The component renders an <input> element using the provided attributes.

Copyright 2025 Deirror. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Input

func Input(ps ...Props) templ.Component

Types

type Props

type Props struct {
	props.Attrs

	Hx   htmx.Props
	Aria aria.Props
	Data data.Props

	Type        string
	Name        string
	Value       string
	Placeholder string
	Disabled    bool
	Required    bool
	ReadOnly    bool
	Checked     bool
}

func (Props) AsTemplAttrs

func (p Props) AsTemplAttrs() templ.Attributes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL