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

24 lines
549 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>
}
templ BootstrapButton(message, variant string) {
<button type="button" class={ getButtonVariant(variant) }>{ message }</button>
}