slider

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Range

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

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