alerts

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

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

Alert is a component that displays an alert.

func Error

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

Error is a component that displays an error alert.

func Info

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

Info is a component that displays an info alert.

func Success

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

Success is a component that displays a success alert.

func Warning

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

Warning is a component that displays a warning alert.

Types

type AlertProps

type AlertProps struct {
	ClassNames 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