menus

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: 1 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 Collapsible

func Collapsible(p CollapsibleProps, children ...htmx.Node) htmx.Node

Collapsible is the component for the menu collapse.

func CollapsibleSummary

func CollapsibleSummary(p CollapsibleSummaryProps, children ...htmx.Node) htmx.Node

CollapsibleSummary is the component for the menu collapse summary.

func Item

func Item(p ItemProps, children ...htmx.Node) htmx.Node

Item is the component for the menu item.

func Link(p LinkProps, children ...htmx.Node) htmx.Node

Link is the component for the menu link.

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

Menu is the component for the menu.

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

MenuHorizontal is the component for the horizontal menu.

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

MenuVertical is the component for the vertical menu.

func Title

func Title(p TitleProps, children ...htmx.Node) htmx.Node

Title is the component for the menu title.

Types

type CollapsibleProps

type CollapsibleProps struct {
	// Open indicates whether the collapsible menu is open or closed.
	Open bool
	// ClassNames are the additional class names for the collapsible menu.
	htmx.ClassNames
}

CollapsibleProps is the struct for the menu collapse props.

type CollapsibleSummaryProps

type CollapsibleSummaryProps struct {
	htmx.ClassNames
}

CollapsibleSummaryProps is the struct for the menu collapse summary props.

type ItemProps

type ItemProps struct {
	htmx.ClassNames
}

ItemProps is the struct for the menu item props.

type LinkProps

type LinkProps struct {
	Href   string
	Active bool
	htmx.ClassNames
}

LinkProps is the struct for the menu link props.

type Props

type Props struct {
	htmx.ClassNames
}

Props is the struct for the menu props.

type TitleProps

type TitleProps struct {
	htmx.ClassNames
}

TitleProps is the struct for the menu title props.

Jump to

Keyboard shortcuts

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