Menu

Components

AvatarBadgeButtonLinkRowSkeleton
Essence

Avatar

Renders an avatar element


YM
YM
YM
render Avatar.new(src: "https://avatars.githubusercontent.com/u/30733")
render Avatar.new do |avatar|
  avatar.fallback { "YM" }
end

Usage

Add the component to your project

bundle exec essence add avatar