Package svgbtn provides utilities for generating SVG-styled buttons as Markdown image links.
Buttons are rendered as SVG images with customizable size, colors, labels, and links. This package includes preconfigured styles such as Primary, Danger, Success, Small, Wide, Text-like, and Icon buttons, as well as a factory method for dynamic button creation.
Example usage:
Example
1func Render(_ string) string {
2 btn := svgbtn.PrimaryButton(120, 40, "Click Me", "https://example.com")
3 return btn
4}
See more examples at gno.land/r/leon:buttons
All buttons are returned as Markdown-compatible strings: [svg_data](link).