slider

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Range added in v1.10.0

func Range(props ...RangeProps) templ.Component

func Script

func Script() templ.Component

func Slider

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

func Value

func Value(props ...ValueProps) templ.Component

Types

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Name       string
	Min        int
	Max        int
	Step       int
	Value      int
	Disabled   bool
}

type RangeProps added in v1.10.0

type RangeProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	NameMin    string
	NameMax    string
	Min        int
	Max        int
	Step       int
	MinValue   int
	MaxValue   int
	Disabled   bool
}

type ValueProps

type ValueProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	For        string // For single slider: slider ID. For range: slider ID + "-min" or "-max"
}

Jump to

Keyboard shortcuts

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