dropdown

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	PlacementTop         = popover.PlacementTop
	PlacementTopStart    = popover.PlacementTopStart
	PlacementTopEnd      = popover.PlacementTopEnd
	PlacementRight       = popover.PlacementRight
	PlacementRightStart  = popover.PlacementRightStart
	PlacementRightEnd    = popover.PlacementRightEnd
	PlacementBottom      = popover.PlacementBottom
	PlacementBottomStart = popover.PlacementBottomStart
	PlacementBottomEnd   = popover.PlacementBottomEnd
	PlacementLeft        = popover.PlacementLeft
	PlacementLeftStart   = popover.PlacementLeftStart
	PlacementLeftEnd     = popover.PlacementLeftEnd
)

Variables

This section is empty.

Functions

func Content added in v1.1.0

func Content(props ...ContentProps) templ.Component
func Dropdown(props ...Props) templ.Component

func Group added in v1.1.0

func Group(props ...GroupProps) templ.Component

func Item added in v1.1.0

func Item(props ...ItemProps) templ.Component

func Label added in v1.1.0

func Label(props ...LabelProps) templ.Component

func Script added in v1.1.0

func Script() templ.Component

func Separator added in v1.1.0

func Separator(props ...SeparatorProps) templ.Component

func Shortcut added in v1.1.0

func Shortcut(props ...ShortcutProps) templ.Component

func Sub added in v1.1.0

func Sub(props ...SubProps) templ.Component

func SubContent added in v1.1.0

func SubContent(props ...SubContentProps) templ.Component

func SubTrigger added in v1.1.0

func SubTrigger(props ...SubTriggerProps) templ.Component

func Trigger added in v1.1.0

func Trigger(props ...TriggerProps) templ.Component

Types

type ContentProps added in v1.1.0

type ContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Placement  Placement
}

type GroupProps added in v1.1.0

type GroupProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type ItemProps added in v1.1.0

type ItemProps struct {
	ID           string
	Class        string
	Attributes   templ.Attributes
	Disabled     bool
	Href         string
	Target       string
	PreventClose bool
}

type LabelProps added in v1.1.0

type LabelProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type Placement added in v1.1.0

type Placement = popover.Placement

type PortalProps added in v1.1.0

type PortalProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type Props added in v1.1.0

type Props struct {
	ID string
}

type SeparatorProps added in v1.1.0

type SeparatorProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type ShortcutProps added in v1.1.0

type ShortcutProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type SubContentProps added in v1.1.0

type SubContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type SubProps added in v1.1.0

type SubProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type SubTriggerProps added in v1.1.0

type SubTriggerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type TriggerProps added in v1.1.0

type TriggerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

Jump to

Keyboard shortcuts

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