go-cook-portal/views/components/bootstrap/alert.templ

20 lines
417 B
Plaintext
Raw Normal View History

2024-04-09 07:29:45 -07:00
package bootstrap
const (
VariantPrimary = "primary"
VariantSecondary = "secondary"
VariantSuccess = "success"
VariantDanger = "danger"
VariantWarning = "warning"
VariantInfo = "info"
VariantLight = "light"
VariantDark = "dark"
VariantLink = "link"
)
templ BootstrapAlert(message, variant string) {
<div class={ getAlertVariant(variant) } role="alert">
{ message }
</div>
}