<script>
	const style = { fill: '#ff0000', x: '50', y: '50', width: '100', height: '75'};
</script>

<svg width="400" height="400">
	<rect {...style}/>
</svg>
