svg

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Icon

func Icon(name string, mods ...htm.Mod) *htm.Node

func Image

func Image(name string, mods ...htm.Mod) *htm.Node

func Init

func Init(setup Setup) error

Init initializes a package-level instance to allow direct usage of package functions Icon and Image.

Types

type Comp

type Comp struct {
	// contains filtered or unexported fields
}

func New

func New(setup Setup) (*Comp, error)

func (*Comp) Icon

func (c *Comp) Icon(name string, mods ...htm.Mod) *htm.Node

func (*Comp) Image

func (c *Comp) Image(name string, mods ...htm.Mod) *htm.Node

func (*Comp) Reload

func (c *Comp) Reload() error

type Setup

type Setup struct {
	IconFS        fs.FS
	ImageFS       fs.FS
	HotReload     bool
	DefaultHeight string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL