themes-magazine-bold/button_override.templ
Alex Dunmow fe754f634b initial: theme plugin magazine-bold
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/magazine-bold.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:38 +08:00

14 lines
366 B
Plaintext

package main
// mbButtonComponent renders a squared-ink button with accent hover.
// All variants get the visible 2px ring on :focus-visible from .mb-button.
templ mbButtonComponent(label, url, variant string) {
if label != "" {
<a
href={ templ.SafeURL(url) }
class={ "mb-button", "mb-button-" + variant }
data-variant={ variant }
>{ label }</a>
}
}