dialog

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(props ...CloseProps) templ.Component

func Content

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

func Description

func Description(props ...DescriptionProps) templ.Component

func Dialog

func Dialog(props ...Props) templ.Component
func Footer(props ...FooterProps) templ.Component
func Header(props ...HeaderProps) templ.Component

func Script

func Script() templ.Component

func Title

func Title(props ...TitleProps) templ.Component

func Trigger

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

Types

type CloseProps

type CloseProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	For        string // ID of the dialog to close (optional, defaults to closest dialog)
}

type ContentProps

type ContentProps struct {
	ID               string
	Class            string
	Attributes       templ.Attributes
	HideCloseButton  bool
	Open             bool // Initial open state for standalone usage (when no context)
	DisableAutoFocus bool
}

type DescriptionProps

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

type FooterProps

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

type HeaderProps

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

type Props

type Props struct {
	ID               string
	Class            string
	Attributes       templ.Attributes
	DisableClickAway bool
	DisableESC       bool
	Open             bool
}

type TitleProps

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

type TriggerProps

type TriggerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	For        string // Reference to a specific dialog ID (for external triggers)
}

Jump to

Keyboard shortcuts

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