popover

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

templ: version: v0.2.793

templ: version: v0.2.793

templ: version: v0.2.793

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Popover

func Popover(props *Props) templ.Component

func Popover2

func Popover2() templ.Component

func Showcase

func Showcase() templ.Component

Types

type Props

type Props struct {
	// ID - if not supplied, random will be generated
	ID string `default:""`

	// if present, and TriggerContent is nil,
	// will display as the button Label of the
	// default styled trigger button
	TriggerLabel string `default:"click"`

	// any templ.Component
	TriggerContent templ.Component

	//
	PopOverContent templ.Component

	// placement relative to trigger
	// top, top-start, top-end
	// left, left-start, left-end
	// right, right-start, right-end
	// bottom, bottom-start, bottom-end
	Placement string `default:"top"`

	// On - click, hover
	On string `default:"click"`

	// if On is set to 'click', then away being true will close
	// the popover display on any click not ON the display.
	Away bool
}

Jump to

Keyboard shortcuts

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