nav

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NavLink(text, hash, icon string) *dom.Element

NavLink creates a navigation link with optional icon.

Types

type Nav struct {
	*dom.Element
	Items []NavItem
}
func (n *Nav) IconSvg() map[string]string
func (n *Nav) Render() *dom.Element
func (n *Nav) RenderCSS() string
type NavItem struct {
	Label string
	Route string // e.g., "users", "products"
	Icon  string // optional icon ID
}

Jump to

Keyboard shortcuts

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