Avatar style (Circle or Transparent). Accepts enum or string for backward compatibility.
OptionalstyleInline CSS styles to apply to the avatar container
OptionaltopTop/hair style (e.g., "LongHairStraight", "ShortHairDreads01")
OptionalaccessoriesAccessories type (e.g., "Blank", "Kurt", "Prescription01")
OptionalhairHair color (e.g., "Auburn", "Black", "Blonde")
OptionalhatHat color (e.g., "Black", "Blue01", "Red")
OptionalfacialFacial hair type (e.g., "Blank", "BeardMedium", "MoustacheFancy")
OptionalfacialFacial hair color (e.g., "Auburn", "Black", "Blonde")
OptionalclotheClothing type (e.g., "BlazerShirt", "GraphicShirt", "Hoodie")
OptionalclotheClothing color (e.g., "Black", "Blue01", "PastelGreen")
OptionalgraphicGraphic type for GraphicShirt (e.g., "Bat", "Cumbia", "Deer")
OptionaleyeEye type (e.g., "Default", "Happy", "Wink", "Surprised")
OptionaleyebrowEyebrow type (e.g., "Default", "Angry", "RaisedExcited")
OptionalmouthMouth type (e.g., "Default", "Smile", "Serious", "Tongue")
OptionalskinSkin color (e.g., "Tanned", "Yellow", "Pale", "Light", "Brown", "DarkBrown", "Black")
OptionalpiecePiece type for Piece component
OptionalpiecePiece size for Piece component
OptionalviewViewBox for Piece component
OptionalanimationSpeed for idle animation in milliseconds (500-3000ms). Controls how often random expression changes occur when not hovering. Lower values = faster/more frequent changes.
OptionalhoverScale multiplier on hover (1.05-1.32). Visual scaling effect only, does not change expressions.
OptionalhoverExpression sequence for hover animation. Array of HoverExpression objects to cycle through on hover.
OptionalhoverSpeed for hover sequence animation in milliseconds (100-2000ms). Controls how fast the hover sequence cycles.
OptionalbackgroundBackground color for circle style avatars (hex color string). Falls back to parent element's background color if not specified.
The avatar automatically watches for CSS variable changes on the document root and parent elements, so the clip mask dynamically responds to theme changes.
OptionalmaskExplicit background color for the clip mask overlay. When provided, this color is used immediately without auto-detection, eliminating the ~16ms delay from MutationObserver polling.
Use this for dynamic themes where the parent background changes frequently and you want instant synchronization.
OptionaloriginalOriginal eye type before hover animation (used internally)
OptionaloriginalOriginal eyebrow type before hover animation (used internally)
OptionaloriginalOriginal mouth type before hover animation (used internally)
Props for the main Avatar component.
Supports all avatar customization options plus optional animation features. Animation features (idle animation, hover scale, hover animation) are independent and can be combined as needed.
Example