NexoreUI
InstallationComponentsNexore MakeGitHub
GitHub
NexoreUIv0.1.2

Getting Started

Installation

Components

ButtonInputCardBadgeAlertAvatarAccordionModal / DialogTooltipTabsProgressSkeletonSliderSwitchRatingCommandTableStepperScroll AreaFile UploadNavigationIconsDock

Pro

ChartsData DisplayDark Mode ToolkitCommerceCookie ConsentSocialPremium EffectsLoaders

Animated

MarqueeNumber TickerAnimated NumberTyping AnimationBlur FadeBox RevealFile Preview CardImage Compare
MIT License
DocsAvatar

Avatar

User profile pictures with fallback initials.

Next ComponentAccordion

Avatars

User profile image representations with status dots and fallbacks.

When to use

default avatarProfile settings, headers, user menus, comment authors
stack avatarColleague lists, project members list, active chat members groups
dotted / pulse avatarIndicating active online, away, or busy status in messaging apps
initials fallbackDefault render state when a user hasn't uploaded a photo or image load fails

Interactive Playground

Avatar Playground
nexoreui
Live Preview
NX
Props Panel
text

URL of the avatar image

text

Fallback initials when image fails to load

Generated Code
Open in GitHub
import { Avatar, AvatarImage, AvatarFallback } from "nexoreui"

<Avatar>
  <AvatarImage src="https://github.com/vercel.png" />
  <AvatarFallback>NX</AvatarFallback>
</Avatar>

Default Avatar

CN
component.tsx

Stack Avatar

component.tsx

Dotted Avatar

component.tsx

Shadow Avatar

component.tsx

Polymorph Avatar

component.tsx
Page 1 of 2

API Reference (Props)

PropTypeDefaultDescription
srcstring—The image source URL for the avatar.
fallbackstring—Initials to display as a fallback if the image fails to load.
classNamestring—Additional custom class names.

♿ Accessibility (a11y)

  • Image Fallbacks: If the image fails to load or the source URL is invalid, the component automatically hides the image and displays the initials fallback, ensuring a consistent visual appearance.
  • ARIA labels: Avatars should include descriptive alt text or labels (e.g. `aria-label="User Profile"`) if they function as interactive links or icons.