@n8d/htwoo-patterns
Version:
hTWOo Patterns to setup custom style guide
45 lines (33 loc) • 1.25 kB
Markdown
---
title: Avatar /w presence - 48px
---
## Overview
The 48px Avatar with Presence is a medium-large size variant that provides enhanced visibility in primary interface components where user identity and status should be prominent.
## Usage
This medium-large size is ideal for:
- Main chat interfaces
- User profile sections
- Primary navigation with user status
- Contact cards
- Team directories
## Style Files
The component uses the following SCSS files:
1. **Base Avatar Styles**
`/src/styles/01-atoms/avatar/_avatar.scss`
- Defines the `.hoo-avatar-48` class
- Sets dimensions to 48px × 48px
- Extends the base avatar placeholder with circular shape
2. **Presence Indicator**
`/src/styles/01-atoms/avatar/_presence.scss`
- Provides the `.hoo-presence` class with status indicators
- Maintains 16px indicator size with 2px border
- Includes all status colors (online, away, dnd, invisible, oof)
3. **Avatar with Presence Container**
`/src/styles/02-molecules/avatar-w-presence/_index.scss`
- Defines the `.hoo-avatar-pres-48` class
- Extends the base presence container
- Uses transform rotation for accurate positioning
## SCSS Imports
**Main Component**\
@n8d/htwoo-core/components/avatar
***