navbar

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: 6 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

Index

Constants

View Source
const RootClassName = "navbar"

Variables

This section is empty.

Functions

func Show

func Show(props NavbarProps) templ.Component

Types

type BrandProps

type BrandProps struct {
	BrandName string
	BrandLink string
}

type DirectionType

type DirectionType string
const Horizontal DirectionType = ""
const Vertical DirectionType = "flex-column align-items-stretch"
type NavbarProps struct {
	base.ElementProps
	Brand         *BrandProps
	IsCollapsable bool
	NavItems      []*navitem.NavItemProps
	Placement     PlacementType
	Direction     DirectionType
}
func (nvp NavbarProps) BuildClassNames() (classes string)

type PlacementType

type PlacementType string
const Default PlacementType = ""
const FixedBottom PlacementType = "fixed-bottom"
const FixedTop PlacementType = "fixed-top"
const StickyTop PlacementType = "sticky-top"

Directories

Path Synopsis
templ: version: v0.2.747
templ: version: v0.2.747

Jump to

Keyboard shortcuts

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