label

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Floating

func Floating(props ...FloatingProps) templ.Component

Floating renders a <label class="floating-label"> container.

func Label

func Label(props ...Props) templ.Component

Label renders a <span class="label"> for use inside input or select wrappers.

Types

type FloatingProps

type FloatingProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

FloatingProps for the floating label container.

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

Props for the Label span used inside input/select wrappers.

Jump to

Keyboard shortcuts

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