Avatar
A React component in Beamline's Content & display category, in the free sample.
A person or account in a small space: a photo, or initials on the hue their name always gets; presence dot; circle for people, square for companies.
Use it for
- People and accounts in lists, comments, menus and headers.
- A presence mark next to a name (PresenceDot) where the status needs a glance, not a sentence.
Not for
- Brand logos in lists (an image in item).
Anatomy
- face: initials on the name's hue, or a photo
- presence mark, cut out of the face (bottom inline-end)
Variants
- size: xs, sm, md, lg, xl
- shape: circle (people), square (companies, workspaces)
- presence: online: disc, away: crescent, busy: disc with a bar, offline: hollow ring
States
- initials
- photo loading (initials hold the place; the photo fades in when it lands)
- photo
- photo failed (initials)
- photo failed before hydration (initials; a completed failed image is recognized when the ref attaches)
- with presence
- presence changed (settles into its new mark)
Keyboard
- Not focusable on its own
Motion
A photo that is still loading when the avatar mounts fades in over the initials (--pui-fade-in) instead of popping; one already decoded shows at once. A presence that changes settles into its new mark from a little smaller (--pui-duration-feedback, no overshoot); the first render plays nothing. Reduced motion keeps the fade and drops the growth.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | — | |
src | string | — | A photo; initials show while it loads and if it fails. |
size | "xs" | "sm" | "md" | "lg" | "xl" | — | |
shape | "circle" | "square" | — | circle for people, square for companies and workspaces. |
status | "online" | "away" | "busy" | "offline" | — | |
PresenceDot / hueOf / initialsOf | exports | — | |
style / ref | CSSProperties / native Ref | — | style: Inline styles on the documented visual root; no overrides by default. ref: Receives the documented native target or imperative handle; omitted by default. |
classNames | AvatarClassNames | — | Classes for the named visual parts; no overrides by default. |
ref | Ref<HTMLSpanElement> | — | Receives the documented native target or imperative handle; omitted by default. |
PresenceDot.className | string | — | |
PresenceDot.style | CSSProperties | — |
Used in
- Account ledger
- Accounting workbench
- Admin users
- AI agent workspace
- Analytics dashboard
- Applicant company
- Appointment book
- Approval policy
- Asset library
- Asset packs
- Asset workspace
- Audience segments
- Audit log
- Auth page
- Automation runs
- Automation steps
- Benefit changes
- Billing desk
- Services and hours
- Budget month
- Bulk item edit
- Call sheet
- Captions
- Care plan
- Case workspace
- Category manager
- Changelog feed
- Click heatmap
- Book an appointment
- Client forms
- Client journal
- Collection batch edit
- Component properties
- Component source
- Condition checklist
- Contact profile
- Content releases
- Conversation history
- Corrective actions
- Correlation editor
- Counter service
- Course builder
- Course dashboard
- Course home
- Crew booking
- CRM pipeline
- Customer requests
- Cut review
- Cycle planner
- Dashboard controls
- Dashboard panels
- Data binding
- Day agenda
- Dispensing
- Document finder
- Document history
- Document review
- Domain verification
- Element index
- Engineering changes
- Equipment register
- Estimate share
- Event evidence
- External review
- Field conditions
- File detail
- File manager
- Flight logbook
- Flight route
- Gift batches
- Gift desk
- Grading desk
- Grazing plan
- Guest messages
- Guest review
- Health questionnaire
- Helpdesk inbox
- Hiring pipeline
- Hours ledger
- Import runs
- Inspection review
- Instructor finder
- Instrument use
- Intake triage
- Integrations
- Inventory counts
- Inventory finder
- Inventory item
- Invoices
- Issue workbench
- Item setup
- Itinerary
- Job card
- Job materials
- Kit builder
- Knowledge base manager
- Label designer
- Language preview
- Layout inspector
- Lease renewals
- Lease setup
- Link booking
- Linked appointments
- Localization overview
- Maintenance plan
- Maintenance plans
- Map annotations
- Matrix question
- Media collection
- Meeting and call review
- Messaging journeys
- Metadata fields
- Model inspector
- Model issues
- My shift
- Newsletter desk
- Nutrition library
- Order board
- Order changes
- Order closeout
- Order composer
- Order history and fills
- Order ledger
- Orders admin
- Owner records
- Pack station
- Packages & memberships
- Page inline edit
- Participant review
- Parts tracker
- Patient chart
- Patient overview
- Payroll approvals
- Payroll cycles
- Payroll run
- Permit application
- Permit services
- Pipeline record
- Pipeline views
- Plan acceptance
- Plan follow-up
- Plan templates
- Planner setup
- Playbook check
- Policy rules
- Post performance
- Post release
- Pre-flight briefing
- Probing chart
- Procedure picker
- Product analytics
- Product editor
- Production and lots
- Production plan
- Program modules
- Program setup
- Project board
- Project browser
- Project directory
- Project home
- Project periods
- Project signals
- Projects
- Proposal payments
- Protocol builder
- Prototype review
- Prototype task
- Purchase order desk
- Purchase orders
- Purchase request
- Purchasing rules
- Quality checks
- Query library
- Question builder
- Queue display
- Queue settings
- Queue today
- Reconciliation
- Record editor
- Record import
- Record search
- Record settings
- Record setup
- Record sharing
- Record versions
- Recruiter home
- Rental availability
- Rental policy
- Report builder
- Report library
- Research synthesis
- Reservation desk
- Resource rules
- Rooms & equipment
- Restock desk
- Results notebook
- Retention analysis
- Return case
- Return queue
- Return request
- Review page builder
- Review share
- Rig editor
- Room readiness
- Roster publishing
- Route plan
- Run of show
- Sales dashboard
- Sample ledger
- Sample storage
- Saved views
- Scan station
- Schema fields
- Screenplay revisions
- Segment editor
- Serial allocation
- Service estimate
- Service tasks
- Session notes and tasks
- Session replay
- Settings
- Shared inbox
- Shift briefing
- Shift planner
- Shift rotations
- Shipment split
- Shop floor
- Shot list
- Sign in
- Signature fields
- Signing request
- Sign up form
- Slide presenter
- Slot editor
- Social media scheduler
- Sound library
- Special orders
- Stage reports
- Status dashboard
- Stay folio
- Stock alerts
- Stock count
- Stock moves
- Stop runs
- Study flow
- Study setup
- Submittal register
- AI support chat
- AI support console
- Tag manager
- Task results
- Team calendar
- Team chat
- Team & members
- Telemetry explorer
- Text styles
- Ticket orders
- Ticket setup
- Timesheet review
- Tracker desk
- Training progress
- Transaction review
- Transition sequence
- Translation editor
- Translation key
- Translation workbench
- Treatment plan
- Tree test
- Turntable review
- Versioned dashboard
- Versioned document
- Visit board
- Visitor desk
- Visitor journey
- Voice agent
- Volunteer rota
- Waitlist desk
- Work orders
- Workflow builder
- Workflow library
- Workflow versions
- Workout logger
- Workout planner
- Workspace switcher
- Writing canvas
Import
import { PresenceDot, Avatar } from "@beamline/avatar";
Get it
Avatar is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Avatar is included in the free MIT sample. Get Beamline · Connect your agent
More in Content & display
- Image compare: Two images in one frame with a divider: drag anywhere, or arrow keys on the handle; horizontal or vertical, with captions.
- Revision compare: Two revisions of a drawing on one camera: side by side, they pan and zoom together (a crosshair in one pane marks the point under the pointer in the…
- Live cursors: Who else is working on this, and where: over any shared surface, each person's pointer in the colour their name always gets, with a name flag, gliding…
- Document viewer: A PDF or a paged document read and marked up in place: page thumbnails beside it, zoom to the width, the page or a percentage, pages by keyboard, a…
- Video player: A video player on the native <video> element: title bar with an external link and close, centre play with ±10 s, scrub, time, volume, speed, captions…
- Lightbox: A full-screen image viewer: a thumbnail grows into it and shrinks back, arrows and ←/→ step through the set, Esc or a downward drag closes it.
- File diff: A change to one file as a unified diff: line numbers, tinted lines, only the changed words marked, long unchanged stretches folded; give rows or just…
- QR Code: A scannable code set as gradient dots with rounded finder rings and an optional centre mark; a new value ripples out from the centre.
- Data matrix: A DataMatrix (ECC 200, ISO/IEC 16022) any scanner reads: crisp square modules in SVG at any size, the smallest symbol that holds the value (10×10 to…
- Slot text: Text and numbers that roll into their new value on reels, digit by digit from the right; other characters fade. Read as plain text by assistive tech.
- Text reveal: A headline whose words rise into place once, the first time it scrolls into view; never repeats.
- Text morph: A short label that becomes its next state letter by letter: shared letters glide into place, new ones arrive, old ones leave.
- Code block: Code to read and copy: highlighted in the system's colours, numbered, marked lines, long files folded behind “Show all”.
- Inbox list: Conversations waiting for a person, triaged in place: sender, subject and the first words, time, unread weight, star, labels and attachments, grouped by…
- Comment thread: A discussion attached to something: replies, reactions, @mentions, editing and deleting your own, resolve that folds the thread.
- Timeline: What happened, newest first and grouped by day: people with avatars, systems with toned icons, relative times with the exact time on hover, details in…
- Description list: The details of one record as label and value pairs: beside each other or stacked, in as many columns as the room holds; a copy button arrives on the row…
- Text shimmer: Ongoing work said in words (“Thinking…”) with a calm band of light passing across them; stops when inactive.
- Logo Carousel: A wall of logos shown a few at a time: every few seconds the slots turn left to right, each logo leaving upward as the next rises in.
- Avatar group: A team in a small space: overlapping faces that name themselves on hover or focus, and “+N” naming the rest.
- Item: The generic list row: media, title, description, meta and trailing actions; becomes a link or button when interactive.
- Marker: A labelled point in a stream: a status event with an icon between messages, or a label such as "Today" between two hairlines.
- Credit: "Designed with Beamline" for a site's footer: the Beamline mark and a quiet line, or a small badge. With your partner code, each new customer's first…
- Badge: A short status, category or count label: six tones, an icon or a status dot, two sizes.
- Kbd: Keyboard keys as keycaps, for combinations and sequences (G then A); `mod` resolves to ⌘ or Ctrl per platform, symbols are spoken as words.