swaps

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Off

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

Off is a component for the off state of the swap component.

func On

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

On is a component for the on state of the swap component.

func Swap

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

Swap is a component for the htmx swap extension.

Types

type Props

type Props struct {
	htmx.ClassNames
	Value string
}

Props contains the properties for the swap component.

Jump to

Keyboard shortcuts

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