diff --git a/src/components/Avatar.tsx b/src/components/Avatar.tsx new file mode 100644 index 0000000..32ce50b --- /dev/null +++ b/src/components/Avatar.tsx @@ -0,0 +1,49 @@ +import React from "react"; +import classNames from "classnames"; + +export type Props = { + /** + * The style avatar + */ + className?: string; + /** + * The path of image + */ + src?: string; + /** + * The alternative text in case the image is not valid + */ + alt?: string; + /** + * The text inside avatar as a child + */ + children?: React.ReactNode; +}; + +const Avatar = ({ className, src, alt, children }: Props) => { + return ( +