20 lines
417 B
Plaintext
20 lines
417 B
Plaintext
|
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>
|
||
|
}
|