Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

create Image component

AykutSarac85bae53459ba
diff --git a/src/components/Image/index.tsx b/src/components/Image/index.tsx
new file mode 100644
index 00000000..0c169a15
--- /dev/null
+++ b/src/components/Image/index.tsx
@@ -0,0 +1,14 @@
+import React from 'react';
+import styled from 'styled-components';
+
+const StyledImage = styled.img`
+ object-fit: contain;
+
+ @media only screen and (max-width: 768px) {
+ width: 100%;
+ }
+`;
+
+export const Image = ({ ...props }) => {
+ return <StyledImage {...props} />
+};