navitem

package
v0.0.0-...-253b25b Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

Index

Constants

View Source
const RootClassName = "nav-item"
View Source
const RootClassNameNavLink = "nav-link"

Variables

This section is empty.

Functions

func Show

func Show(props NavItemProps) templ.Component

Types

type NavItemProps struct {
	base.ElementProps
	Name                    string
	Link                    string
	IsActive                bool
	IsDisabled              bool
	IsDropdown              bool
	ChildNavItems           []NavItemProps
	NavsAndTabsContextProps *NavsAndTabsContextProps
}
func (nip NavItemProps) BuildClassNames() (classes string)
func (nip NavItemProps) BuildClassNamesNavLink() (classes string)
type NavsAndTabsContextProps struct {
	//  data-bs-toggle="tab" data-bs-target="#nav-home" type="button" role="tab" aria-controls="nav-home" aria-selected="true"
	Toggle       string
	Target       string
	Role         string
	AriaSelected bool
}

Jump to

Keyboard shortcuts

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