modals

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

Action is a component for the htmx modal extension.

func Box

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

Box is a component for the htmx modal extension.

func CloseButton

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

CloseButton is a component for the htmx modal extension.

func CloseButtonOutside

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

CloseButtonOutside 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

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

OpenButton is a component for the htmx modal extension.

Types

type ActionProps

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

type BoxProps struct {
	htmx.ClassNames
}

Box contains the properties for the modal box component.

type CloseButtonProps

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

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

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