diff options
author | eug-vs <eug-vs@keemail.me> | 2020-08-14 15:36:17 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-08-14 15:36:17 +0300 |
commit | fc95e83e704ec054f551bae587a8a6e5bcaf4135 (patch) | |
tree | 195777b0bb4f15719c80d1d407d41fd56f55f3d9 /src/components/Image/Image.tsx | |
parent | 1d35dd8a80f0ea72306e96c2229a27798ec75ce9 (diff) | |
download | which-ui-fc95e83e704ec054f551bae587a8a6e5bcaf4135.tar.gz |
feat: create Image and BackgroundImage components
Diffstat (limited to 'src/components/Image/Image.tsx')
-rw-r--r-- | src/components/Image/Image.tsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/Image/Image.tsx b/src/components/Image/Image.tsx new file mode 100644 index 0000000..de67c6a --- /dev/null +++ b/src/components/Image/Image.tsx @@ -0,0 +1,14 @@ +import React from 'react'; + +interface PropTypes { + src?: string; + alt?: string; + className?: string; +} + +const Image: React.FC<PropTypes> = ({ src, alt, className }) => { + return <img src={src} alt={alt} className={className} />; +}; + +export default Image; + |