hovercard

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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

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

func Root

func Root(props ...Props) templ.Component

func Script

func Script() templ.Component

func Trigger

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

Types

type ContentProps

type ContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Placement  Placement
	Offset     int
	ShowArrow  bool
	// OpenDelay is the delay in ms before the card opens on hover.
	OpenDelay int
	// CloseDelay is the delay in ms before the card closes on hover out.
	CloseDelay int
}

type Placement

type Placement = popover.Placement

type Props

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

type TriggerProps

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