dropdowns

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Dropdown generates a dropdown element based on the provided properties.

func DropdownButton(p DropdownButtonProps, children ...htmx.Node) htmx.Node

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

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

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

func DropdownMenuItems(p DropdownMenuItemsProps, children ...htmx.Node) htmx.Node

DropdownMenuItems 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 DropdownButtonProps struct {
	TabIndex int
	htmx.ClassNames
}

DropdownButtonProps represents the properties for a dropdown summary element.

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

DropdownMenuItem represents the properties for a dropdown items element.

type DropdownMenuItemsProps struct {
	TabIndex int
	htmx.ClassNames
}

DropdownMenuItemsProps represents the properties for a dropdown menu items element.

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

DropdownProps 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