rexxars / react-hexagon

React component that renders a hexagon using SVG. Supports background images, links, SVG content, click handlers and more.
http://rexxars.github.io/react-hexagon/
MIT License
69 stars 21 forks source link

Control SVG width and heigh #8

Open minaairsupport opened 5 years ago

minaairsupport commented 5 years ago

I would like to know how can I control the SVG dimension Width, height

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="-1 -1 4 4" style="
    width: 100px;
"> ... rest of code 
mzord commented 5 years ago

I could do that by CSS For example: svg {width: 200px; height: 200px