modals

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 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 Action added in v0.5.5

func Action(props ActionProps, children ...htmx.Node) htmx.Node

Action is a component for the htmx modal extension.

func Box added in v0.5.5

func Box(props BoxProps, children ...htmx.Node) htmx.Node

Box is a component for the htmx modal extension.

func CloseButton added in v0.5.5

func CloseButton(props CloseButtonProps, children ...htmx.Node) htmx.Node

CloseButton is a component for the htmx modal extension.

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

Modal is a component for the htmx modal extension.

func OpenButton added in v0.5.5

func OpenButton(props OpenButtonProps, children ...htmx.Node) htmx.Node

OpenButton is a component for the htmx modal extension.

Types

type ActionProps added in v0.5.5

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

ActionProps contains the properties for the modal actions component.

type BoxProps added in v0.5.5

type BoxProps struct {
	htmx.ClassNames
}

Box contains the properties for the modal box component.

type CloseButtonProps added in v0.5.5

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

CloseButtonProps contains the properties for the modal close button component.

type OpenButtonProps added in v0.5.5

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

OpenButtonProps contains the properties for the modal open 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