dropdowns

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Button

func Button(p ButtonProps, children ...htmx.Node) htmx.Node

Button generates a dropdown summary element based on the provided properties.

func Dropdown(p Props, children ...htmx.Node) htmx.Node

Dropdown generates a dropdown element based on the provided properties.

func DropdownMenuItem(p MenuItemProps, children ...htmx.Node) htmx.Node

MenuItem generates a dropdown items element based on the provided properties.

func MenuItems(p MenuItemsProps, children ...htmx.Node) htmx.Node

MenuItems generates a dropdown menu items element based on the provided properties.

func SingleSelect

func SingleSelect(props SingleSelectProps, children ...htmx.Node) htmx.Node

SingleSelect ...

func SingleSelectOption

func SingleSelectOption(props SingleSelectOptionProps, children ...htmx.Node) htmx.Node

SingleSelectOption ...

Types

type ButtonProps

type ButtonProps struct {
	TabIndex int
	htmx.ClassNames
}

ButtonProps represents the properties for a dropdown summary element.

type MenuItemProps struct {
	htmx.ClassNames // The class names for the dropdown items element.
}

MenuItem represents the properties for a dropdown items element.

type MenuItemsProps struct {
	TabIndex int
	htmx.ClassNames
}

MenuItemsProps represents the properties for a dropdown menu items element.

type Props

type Props struct {
	htmx.ClassNames // The class names for the dropdown element.
}

Props represents the properties for a dropdown element.

type SingleSelectOptionProps

type SingleSelectOptionProps struct {
	ID    string
	Name  string
	Value string
}

SingleSelectOptionProps ...

type SingleSelectProps

type SingleSelectProps struct {
	URL string
	ID  string
}

SingleSelectProps ...

Jump to

Keyboard shortcuts

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