navigation

package
v0.0.0-...-b42d0f1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 5 Imported by: 0

README

Navigation Elements

Copy this package as source when an application needs navigation controls.

Copy:

  • mobile_menu_button.templ

Do not copy generated files:

  • *_templ.go

After copying, run templ generate ./... and .ui8px checks in the destination app.

The package depends only on UI8Kit.

Documentation

Overview

templ: version: v0.3.1001

Package navigation contains reusable navigation controls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeaderNav

func HeaderNav(props HeaderNavProps) templ.Component

func MobileMenuButton

func MobileMenuButton(props MobileMenuButtonProps) templ.Component

ui8contract: dialog.trigger provider=github.com/fastygo/elements/navigation.MobileMenuButton

func NavList(props NavListProps) templ.Component

Types

type HeaderNavProps

type HeaderNavProps struct {
	Items []NavItem
	Label string
}

type MobileMenuButtonProps

type MobileMenuButtonProps struct {
	ID       string
	TargetID string
	Label    string
	Icon     t.Component
}
type NavItem struct {
	Label     string
	Href      string
	IconLabel string
	Icon      t.Component
	Children  []NavItem
	Open      bool
	Value     string
}
type NavListProps struct {
	Items  []NavItem
	Active string
	Label  string
}

Jump to

Keyboard shortcuts

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