avatar

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package avatar provides avatar components with image and fallback support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Avatar

func Avatar(opts ...Option) g.Node

Avatar creates an avatar component

Types

type Option

type Option func(*Props)

func WithAlt

func WithAlt(alt string) Option

func WithAttrs

func WithAttrs(attrs ...g.Node) Option

func WithClass

func WithClass(class string) Option

func WithFallback

func WithFallback(fallback string) Option

func WithSize

func WithSize(size forgeui.Size) Option

func WithSrc

func WithSrc(src string) Option

type Props

type Props struct {
	Src      string
	Alt      string
	Fallback string
	Size     forgeui.Size
	Class    string
	Attrs    []g.Node
}

Jump to

Keyboard shortcuts

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