menus

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: MIT Imports: 1 Imported by: 0

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 bool
	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