modals

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package modals provides structures and methods for handling modal dialogs in a web application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Modal(p Props, children ...htmx.Node) htmx.Node

Modal is a component for the htmx modal extension.

func ModalAction

func ModalAction(p ModalActionProps, children ...htmx.Node) htmx.Node

ModalAction is a component for the htmx modal extension.

func ModalBox(p ModalBoxProps, children ...htmx.Node) htmx.Node

ModalBox is a component for the htmx modal extension.

func ModalCloseButton

func ModalCloseButton(p ModalCloseButtonProps, children ...htmx.Node) htmx.Node

ModalCloseButton is a component for the htmx modal extension.

Types

type ModalActionProps

type ModalActionProps struct {
	// ClassNames are the CSS class names to apply to the modal actions.
	htmx.ClassNames
}

ModalActionProps contains the properties for the modal actions component.

type ModalBoxProps added in v0.5.3

type ModalBoxProps struct {
	htmx.ClassNames
}

ModalBox contains the properties for the modal box component.

type ModalCloseButtonProps

type ModalCloseButtonProps struct {
	// ClassNames are the CSS class names to apply to the modal close button.
	htmx.ClassNames
}

ModalCloseButtonProps contains the properties for the modal close button component.

type Props added in v0.5.3

type Props struct {
	// ID is the identifier for the modal.
	ID string
	// ClassNames are the CSS class names to apply to the modal.
	htmx.ClassNames
}

Props contains the properties for the modal component.

Jump to

Keyboard shortcuts

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