@teamsnap/teamsnap-ui
Version:
a CSS component library for TeamSnap
23 lines (22 loc) • 450 B
TypeScript
/**
* @name Avatar
*
* @description
* A simple component used to display an avatar for a user or organization.
*
* @example
* <Avatar
* mods="u-spaceRightSm"
* src="https://img.url"
* size="sm"
* />
*
*/
import * as React from "react";
export interface Props {
src: string;
size: "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
mods?: string;
}
declare const Avatar: React.FunctionComponent<Props>;
export default Avatar;