alert

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action

func Action(props ...ActionProps) templ.Component

Action sits in the top-right corner, e.g. a button or badge.

func Alert

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

func Description

func Description(props ...DescriptionProps) templ.Component

func Title

func Title(props ...TitleProps) templ.Component

Types

type ActionProps

type ActionProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type DescriptionProps

type DescriptionProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type Props

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

type TitleProps

type TitleProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type Variant

type Variant string
const (
	VariantDefault     Variant = "default"
	VariantDestructive Variant = "destructive"
)

Jump to

Keyboard shortcuts

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