slider

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package slider provides range slider components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Slider

func Slider(opts ...Option) g.Node

Slider creates a range slider input

Types

type Option

type Option func(*Props)

func Disabled

func Disabled() Option

func Required

func Required() Option

func WithAttrs

func WithAttrs(attrs ...g.Node) Option

func WithClass

func WithClass(class string) Option

func WithID

func WithID(id string) Option

func WithMax

func WithMax(maxVal int) Option

func WithMin

func WithMin(minVal int) Option

func WithName

func WithName(name string) Option

func WithStep

func WithStep(step int) Option

func WithValue

func WithValue(value int) Option

type Props

type Props struct {
	Name     string
	ID       string
	Min      int
	Max      int
	Value    int
	Step     int
	Required bool
	Disabled bool
	Class    string
	Attrs    []g.Node
}

Jump to

Keyboard shortcuts

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