avatars

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package avatars provides components for rendering user avatars.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Avatar

func Avatar(p Props, children ...htmx.Node) htmx.Node

Avatar generates an avatar based on the provided properties.

func Group

func Group(p Props, children ...htmx.Node) htmx.Node

Group generates a group of avatars based on the provided properties.

func Offline

func Offline(p Props, children ...htmx.Node) htmx.Node

Offline generates an offline avatar based on the provided properties.

func Online

func Online(p Props, children ...htmx.Node) htmx.Node

Online generates an online avatar based on the provided properties.

func Placeholder

func Placeholder(p Props, children ...htmx.Node) htmx.Node

Placeholder generates a placeholder for an avatar based on the provided properties.

func RoundLarge

func RoundLarge(p Props, children ...htmx.Node) htmx.Node

RoundLarge generates a large round avatar based on the provided properties.

func RoundSmall

func RoundSmall(p Props, children ...htmx.Node) htmx.Node

RoundSmall generates an extra small round avatar based on the provided properties.

func RoundedLarge

func RoundedLarge(p Props, children ...htmx.Node) htmx.Node

RoundedLarge generates a large avatar based on the provided properties.

func RoundedMedium

func RoundedMedium(p Props, children ...htmx.Node) htmx.Node

RoundedMedium generates an avatar based on the provided properties.

func RoundedSmall

func RoundedSmall(p Props, children ...htmx.Node) htmx.Node

RoundedSmall generates an extra small avatar based on the provided properties.

Types

type Props

type Props struct {
	htmx.ClassNames
}

Props represents the properties for an avatar.

Jump to

Keyboard shortcuts

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