@radix-ui/themes
Version:
[](https://radix-ui.com/themes)
15 lines (14 loc) • 750 B
TypeScript
import * as React from 'react';
import * as AvatarPrimitive from '@radix-ui/react-avatar';
import { avatarPropDefs } from './avatar.props.js';
import type { ComponentPropsWithout, RemovedProps } from '../helpers/index.js';
import type { GetPropDefTypes, MarginProps } from '../props/index.js';
interface AvatarProps extends MarginProps, AvatarImplProps {
}
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLImageElement>>;
type AvatarOwnProps = GetPropDefTypes<typeof avatarPropDefs>;
interface AvatarImplProps extends ComponentPropsWithout<typeof AvatarPrimitive.Image, RemovedProps>, AvatarOwnProps {
fallback: NonNullable<AvatarOwnProps['fallback']>;
}
export { Avatar };
export type { AvatarProps };