Documentation
¶
Overview ¶
Package icon provides structured SVG icon rendering for Vango apps.
Index ¶
- func Lucide(name string, opts ...Option) *vango.VNode
- func SVG(data Icon, opts ...Option) *vango.VNode
- type Icon
- type Node
- type Option
- func Attr(key string, value any) Option
- func Class(classes ...string) Option
- func Decorative() Option
- func Fill(fill string) Option
- func Height(height int) Option
- func Label(label string) Option
- func Size(size int) Option
- func Stroke(stroke string) Option
- func StrokeWidth(width float64) Option
- func Width(width int) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Icon ¶
Icon is structured SVG icon data.
func LookupLucide ¶
LookupLucide returns structured Lucide icon data by kebab-case icon name.
type Option ¶
type Option func(*options)
Option configures icon rendering.
func Decorative ¶
func Decorative() Option
Decorative marks the icon as decorative with aria-hidden="true".
Click to show internal directories.
Click to hide internal directories.