Documentation
¶
Index ¶
- func Alert(p AlertProps, children ...htmx.Node) htmx.Node
- func Error(p AlertProps, children ...htmx.Node) htmx.Node
- func Info(p AlertProps, children ...htmx.Node) htmx.Node
- func Success(p AlertProps, children ...htmx.Node) htmx.Node
- func Warning(p AlertProps, children ...htmx.Node) htmx.Node
- type AlertProps
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.
Types ¶
type AlertProps ¶
type AlertProps struct {
// ClassNames are the class names for the alert component.
ClassNames htmx.ClassNames
// Icon is the icon for the alert component.
Icon htmx.Node
}
AlertProps is the type of the props for the Alert component.
Click to show internal directories.
Click to hide internal directories.