components

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountSwitch added in v0.1.24

func AccountSwitch(p AccountSwitchProps) htmx.Node

AccountSwitch ...

func Layout

func Layout(p LayoutProps, children ...htmx.Node) htmx.Node

Layout is a whole document to output.

func MainMenu(p MainMenuProps, children ...htmx.Node) htmx.Node

MainMenu ...

func Page

func Page(props PageProps, children ...htmx.Node) htmx.Node

Page is a whole document to output.

func SubNav(p SubNavProps, children ...htmx.Node) htmx.Node

SubNav ...

func SubNavActions(p SubNavActionsProps, children ...htmx.Node) htmx.Node

SubNavActions ...

func SubNavBreadcrumb(p SubNavBreadcrumbProps, children ...htmx.Node) htmx.Node

SubNavBreadcrumb ...

func UserMenu

func UserMenu(p UserMenuProps, children ...htmx.Node) htmx.Node

UserMenu ...

func Wrap

func Wrap(p WrapProps, children ...htmx.Node) htmx.Node

Wrap ...

Types

type AccountSwitchProps added in v0.1.24

type AccountSwitchProps struct {
	// ClassNames is the class names for the component.
	ClassNames htmx.ClassNames
	// User is the user to user adapters.
	User adapters.GothUser
}

AccountSwitchProps is the properties for the AccountSwitch component.

type LayoutProps

type LayoutProps struct {
	// Team is the teams to user adapters.
	Team adapters.GothTeam
	User adapters.GothUser
	Path string
}

LayoutProps is the properties for the Layout component.

type MainMenuProps struct {
	ClassNames htmx.ClassNames
	Path       string
}

MainMenuProps ...

type PageProps

type PageProps struct {
	Title    string
	Path     string
	Boost    bool
	Children []htmx.Node
}

PageProps is the properties for the Page component.

type SubNavActionsProps struct{}

SubNavActionsProps ...

type SubNavBreadcrumbProps struct{}

SubNavBreadcrumbProps ...

type SubNavProps struct {
	ClassNames htmx.ClassNames
}

SubNavProps ...

type UserMenuProps

type UserMenuProps struct {
	ClassNames htmx.ClassNames
	Path       string
}

UserMenuProps ...

type WrapProps

type WrapProps struct {
	ClassNames htmx.ClassNames
}

WrapProps ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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