alert

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(props ...Props) templ.Component

Types

type Layout

type Layout string

Layout controls the alert direction.

const (
	LayoutDefault    Layout = ""
	LayoutVertical   Layout = "alert-vertical"
	LayoutHorizontal Layout = "alert-horizontal"
)

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Variant    Variant
	Style      Style
	Layout     Layout
}

Props configures an alert.

type Style

type Style string

Style controls the alert visual style.

const (
	StyleDefault Style = ""
	StyleOutline Style = "alert-outline"
	StyleDash    Style = "alert-dash"
	StyleSoft    Style = "alert-soft"
)

type Variant

type Variant string

Variant controls the alert color.

const (
	VariantDefault Variant = ""
	VariantInfo    Variant = "alert-info"
	VariantSuccess Variant = "alert-success"
	VariantWarning Variant = "alert-warning"
	VariantError   Variant = "alert-error"
)

Jump to

Keyboard shortcuts

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