rangeinput

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: 4 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Range

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

Range renders a styled <input type="range">.

Types

type Props

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

type Size

type Size string
const (
	SizeDefault Size = ""
	SizeXs      Size = "range-xs"
	SizeSm      Size = "range-sm"
	SizeMd      Size = "range-md"
	SizeLg      Size = "range-lg"
	SizeXl      Size = "range-xl"
)

type Variant

type Variant string
const (
	VariantDefault   Variant = ""
	VariantNeutral   Variant = "range-neutral"
	VariantPrimary   Variant = "range-primary"
	VariantSecondary Variant = "range-secondary"
	VariantAccent    Variant = "range-accent"
	VariantInfo      Variant = "range-info"
	VariantSuccess   Variant = "range-success"
	VariantWarning   Variant = "range-warning"
	VariantError     Variant = "range-error"
)

Jump to

Keyboard shortcuts

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