Dynamic realtime profile ReadMe linked with spotify
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
611 B

import React from "react";
const ReadmeImg = ({ width, height, children }) => {
return (
<svg
fill="none"
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
xmlns="http://www.w3.org/2000/svg"
>
<foreignObject width={width} height={height}>
<div {...{ xmlns: "http://www.w3.org/1999/xhtml" }}>
<style>{`
* {
margin: 0;
box-sizing: border-box;
}
`}</style>
{children}
</div>
</foreignObject>
</svg>
);
};
export default ReadmeImg;