alerts

package
v0.0.0-...-253b25b Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

Index

Constants

View Source
const RootClassName = "alert"

Variables

This section is empty.

Functions

func Show

func Show(props AlertProps) templ.Component

Types

type AlertClass

type AlertClass string
const DangerAlert AlertClass = "alert-danger"
const DarkAlert AlertClass = "alert-dark"
const InfoAlert AlertClass = "alert-info"
const LightAlert AlertClass = "alert-light"
const PrimaryAlert AlertClass = "alert-primary"
const SecondaryAlert AlertClass = "alert-secondary"
const SuccessAlert AlertClass = "alert-success"
const WarningAlert AlertClass = "alert-warning"

type AlertProps

type AlertProps struct {
	base.ElementProps
	AlertType AlertClass
	Heading   string
}

func (AlertProps) BuildClassNames

func (ap AlertProps) BuildClassNames() (classes string)

Jump to

Keyboard shortcuts

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