@n8d/htwoo-patterns
Version:
hTWOo Patterns to setup custom style guide
45 lines (33 loc) • 1.2 kB
Markdown
---
title: Avatar /w presence - 16px
---
## Overview
The 16px Avatar with Presence is the smallest size variant, ideal for compact UI elements like dense lists, tight navigation menus, or data tables where space is limited.
## Usage
This extra-small size is useful in:
- Dense data tables
- Compact chat interfaces
- Notification badges
- Mini user lists
- Inline mentions in content
## Style Files
The component uses the following SCSS files:
1. **Base Avatar Styles**
`/src/styles/01-atoms/avatar/_avatar.scss`
- Defines the `.hoo-avatar-16` class
- Sets dimensions to 16px × 16px
- Inherits core avatar styling
2. **Presence Indicator**
`/src/styles/01-atoms/avatar/_presence.scss`
- Defines the `.hoo-presence` class
- Status color variations for online, away, dnd, invisible, and oof states
- Consistent 16px indicator with 2px border
3. **Avatar with Presence Container**
`/src/styles/02-molecules/avatar-w-presence/_index.scss`
- Defines the `.hoo-avatar-pres-16` class
- Positions the presence indicator
- Handles transform rotation for proper indicator placement
## SCSS Imports
**Main Component**\
@n8d/htwoo-core/components/avatar
***