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