@atlaskit/avatar
Version:
An avatar is a visual representation of a user or entity.
16 lines (15 loc) • 445 B
JavaScript
import { createContext } from 'react';
const defaultAvatarContentProps = {
as: 'span',
appearance: 'circle',
avatarImage: null,
ref: null,
size: 'medium'
};
/**
* __Avatar content context__
*
* This context provides the props for the AvatarContent component, enabling
* consumers to compose the AvatarContent with the Avatar component.
*/
export const AvatarContentContext = /*#__PURE__*/createContext(defaultAvatarContentProps);