dropdowns

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Button added in v0.5.6

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 added in v0.5.6

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 added in v0.5.6

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