package main
// coffeeButtonVariantClass appends a variant-specific tone to the kraft-tag.
func coffeeButtonVariantClass(variant string) string {
switch variant {
case "secondary":
return "bg-secondary text-secondary-foreground"
case "destructive":
return "bg-destructive text-destructive-foreground"
default:
return ""
}
}
// coffeeButtonComponent renders a button or link styled like a kraft tag with
// a slight rotation on hover.
templ coffeeButtonComponent(text, url, variant string) {
if url != "" {
{ text }
} else {
}
}