agentsclimarketplace

Avatar

Skill reaviz/skills/reablocks/elements/avatar

AI Skills for Reaviz Projects

Install
npx -y skills add reaviz/skills --skill avatar

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.0 KB, as published. Nobody here has run it

Avatar

Displays a user avatar with image, auto-generated initials, or icon fallback. Supports color generation, variants, and click interaction.

Import

import { Avatar, AvatarGroup } from 'reablocks';

Avatar Props

PropTypeDefaultDescription
namestringPerson's name (used for initials and color generation)
srcstringImage URL for the avatar
sizenumber24Avatar size in pixels
variant'filled' | 'outline''filled'Style variant
roundedbooleantrueWhether the avatar is circular
colorstringColor override (auto-generated from name if omitted)
colorOptions{ saturation, lightness, alpha }Options for auto color generation
themeAvatarThemePer-instance theme override
classNamestringAdditional CSS classes

Also accepts all standard HTMLDivElement attributes including onClick.

Basic Usage

<Avatar name="John Doe" size={50} />

With Image

<Avatar name="John Doe" src="/path/to/photo.jpg" size={50} rounded />

Variants

{/* Solid background with white initials */}
<Avatar name="John Doe" size={50} variant="filled" />

{/* Transparent background with colored border */}
<Avatar name="John Doe" size={50} variant="outline" />

Square Avatar

<Avatar name="John Doe" size={50} rounded={false} />

Clickable

When onClick is provided, clickable theme styles are applied:

<Avatar name="John Doe" size={50} onClick={() => console.log('clicked')} />

AvatarTheme Interface

interface AvatarTheme {
  base: string;       // Base styles (flex, alignment, font)
  clickable: string;  // Styles when onClick is present
  rounded: string;    // Rounded corner styles
}

AvatarGroup

Displays multiple avatars in an overlapping stack with an overflow indicator.

AvatarGroup Props

PropTypeDefaultDescription
childrenReactNodeAvatar elements to display
sizenumber10Maximum number of visible avatars
themeAvatarGroupThemePer-instance theme override
classNamestringAdditional CSS classes

AvatarGroup Usage

<AvatarGroup size={5}>
  <Avatar name="John Doe" src="/photo1.jpg" size={32} />
  <Avatar name="Jane Smith" src="/photo2.jpg" size={32} />
  <Avatar name="Bob Wilson" size={32} />
  <Avatar name="Alice Brown" size={32} />
  <Avatar name="Charlie Davis" size={32} />
  <Avatar name="Diana Evans" size={32} />
  <Avatar name="Frank Green" size={32} />
</AvatarGroup>

When avatars exceed size, a "+N more" indicator is displayed.

AvatarGroupTheme Interface

interface AvatarGroupTheme {
  base: string;      // Container styles (flex, alignment)
  avatar: string;    // Individual avatar wrapper (negative margin for overlap)
  overflow: string;  // Overflow indicator styles
}

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.