---
title: Avatar /w presence - 40px
---

## Overview

The 40px Avatar with Presence is a medium size variant that provides clear visibility while remaining compact enough for most standard interfaces.

## Usage

This medium size works well in:
- Primary message interfaces
- User cards
- Activity feeds
- Participant listings
- Main navigation elements

## Style Files

The component uses the following SCSS files:

1. **Base Avatar Styles**  
   `/src/styles/01-atoms/avatar/_avatar.scss`
   - Defines the `.hoo-avatar-40` class
   - Sets dimensions to 40px × 40px
   - Inherits core avatar styling with circular shape

2. **Presence Indicator**  
   `/src/styles/01-atoms/avatar/_presence.scss`
   - Provides the `.hoo-presence` class with status colors
   - Maintains consistent 16px indicator size
   - Uses border to provide visual separation

3. **Avatar with Presence Container**  
   `/src/styles/02-molecules/avatar-w-presence/_index.scss`  
   - Defines the `.hoo-avatar-pres-40` class
   - Extends the base `.hoo-avatar-pres` class
   - Handles positioning of the presence indicator

## SCSS Imports

**Main Component**\
@n8d/htwoo-core/components/avatar

***