TidalUI

Avatar group preview

Profile photos, presence indicators and teammate selection.

pro · Essentials · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/avatar

Import components/ui/tidal.css, components/ui/avatar.css. Wrap installed components in tidal-scope.

Preview

Avatar group component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/avatar.css";
import{TidalAvatar}from"./components/ui/avatar";
export default()=><div className="tidal-scope"><TidalAvatar name={"Demo"}/></div>;

API and props

TidalAvatarGroup.label (required)
string

Required label value accepted by this exported component.

TidalAvatarGroup.members (required)
Array<TidalAvatarMember>

Required members value accepted by this exported component.

TidalAvatarGroup.className
string | undefined

Optional class name value accepted by this exported component.

TidalAvatarGroup.dir
"ltr" | "rtl" | undefined

Optional dir value accepted by this exported component.

TidalAvatarGroup.name
string | undefined

Optional name value accepted by this exported component.

TidalAvatarGroup.onSelect
((id: string) => void) | undefined

Callback invoked when the select interaction is proposed.

TidalAvatarGroup.required
boolean | undefined

Optional required value accepted by this exported component.

TidalAvatarGroup.selectedId
string | undefined

Optional selected id value accepted by this exported component.

TidalAvatarGroup.theme
"light" | "dark" | undefined

Optional theme value accepted by this exported component.

TidalAvatar.name (required)
string

Required name value accepted by this exported component.

TidalAvatar.decorative
boolean | undefined

Use inside a control that already carries the person's accessible name.

TidalAvatar.presence
TidalPresence | undefined

Optional presence value accepted by this exported component.

TidalAvatar.selected
boolean | undefined

Optional selected value accepted by this exported component.

TidalAvatar.shape
"circle" | "rounded" | undefined

Optional shape value accepted by this exported component.

TidalAvatar.size
"sm" | "md" | "lg" | undefined

Optional size value accepted by this exported component.

TidalAvatar.src
string | undefined

Optional src value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas