alerts

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 alerts provides functionality for managing and processing alerts within the system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

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

Alert is a component that displays an alert.

func Error

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

Error is a component that displays an error alert.

func Horizontal

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

Horizontal is a component that displays a horizontal alert.

func Info

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

Info is a component that displays an info alert.

func Success

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

Success is a component that displays a success alert.

func Vertical

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

Vertical is a component that displays a vertical alert.

func Warning

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

Warning is a component that displays a warning alert.

Types

type Props

type Props struct {
	// ClassNames are the class names for the alert component.
	htmx.ClassNames
}

AlertProps is the type of the props for the Alert component.

Jump to

Keyboard shortcuts

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