Avatar: DefineComponent<
ExtractPropTypes<
{
alt: { default: string; type: StringConstructor };
shape: { default: undefined; type: PropType<"circle" | "square"> };
size: {
default: undefined;
type: PropType<"sm" | "md" | "lg" | "xl" | "xs">;
};
src: { default: undefined; type: StringConstructor };
},
>,
() => VNode<RendererNode, RendererElement, { [key: string]: any }>,
{},
{},
{},
ComponentOptionsMixin,
ComponentOptionsMixin,
{},
string,
PublicProps,
ToResolvedProps<
ExtractPropTypes<
{
alt: { default: string; type: StringConstructor };
shape: { default: undefined; type: PropType<"circle" | "square"> };
size: {
default: undefined;
type: PropType<"sm" | "md" | "lg" | "xl" | "xs">;
};
src: { default: undefined; type: StringConstructor };
},
>,
{},
>,
{
alt: string;
shape: "circle"
| "square";
size: "sm" | "md" | "lg" | "xl" | "xs";
src: string;
},
{},
{},
{},
string,
ComponentProvideOptions,
true,
{},
any,
> = ...
Avatar primitive:
hl-avatarwith image + graceful fallback.