dropdowns

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 1 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.

Types

type DropdownButtonProps struct {
	ClassNames htmx.ClassNames // The class names for the dropdown summary element.
	TabIndex   int
}

DropdownButtonProps represents the properties for a dropdown summary element.

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

DropdownMenuItem represents the properties for a dropdown items element.

type DropdownMenuItemsProps struct {
	ClassNames htmx.ClassNames // The class names for the dropdown menu items element.
	TabIndex   int
}

DropdownMenuItemsProps represents the properties for a dropdown menu items element.

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

DropdownProps represents the properties for a dropdown element.

Jump to

Keyboard shortcuts

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