Skip to main content
PROYECTOVIVIANA

Avatar

The props declared for Avatar, generated from the types @proyecto-viviana/ui ships.

Import

import { Avatar } from "@proyecto-viviana/ui";

Props

Props for Avatar in @proyecto-viviana/ui
PropTypeDefaultDescription
srcstring—Not yet documented
altstring—Not yet documented
sizeAvatarSize24The size of the avatar.
isOverBackgroundfalse | true—Whether the avatar is over a color background.
onlinefalse | true—Not yet documented
fallbackstring—Not yet documented
classstring—Not yet documented
slotstring—Not yet documented
stylesStyleString | (() => StyleString | undefined)—Not yet documented
UNSAFE_classNamestring—Not yet documented
UNSAFE_styleJSX.CSSProperties—Not yet documented
refHTMLDivElement | ((el: HTMLDivElement) => void) | { current?: HTMLDivElement | null | undefined; }—Not yet documented

Declared in packages/viviana-ui/src/avatar/index.tsx.

AvatarGroup props

Differs from @proyecto-viviana/solid-spectrum
  • size adds 30.
Props for AvatarGroup in @proyecto-viviana/ui
PropTypeDefaultDescription
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—Avatar children of the avatar group.
labelstring—The label for the avatar group.
size16 | 20 | 24 | 28 | 30 | 32 | 36 | 4024The size of the avatar group.
classstring—Not yet documented
slotstring—Not yet documented
stylesStyleString | (() => StyleString | undefined)—Not yet documented
UNSAFE_classNamestring—Not yet documented
UNSAFE_styleJSX.CSSProperties—Not yet documented
refHTMLDivElement | ((el: HTMLDivElement) => void) | { current?: HTMLDivElement | null | undefined; }—Not yet documented

Declared in packages/viviana-ui/src/avatar/index.tsx.

Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.