Closed AlexDemzz closed 5 years ago
Seems to work well responsively by adding a wrapper with a class in Chrome but not so much in Firefox. The barcode does not respect the width of the parent.
Never mind. Got this to work by adding a parent wrapper div with width 100% and then targeting the outputted SVG with width 100% and height auto CSS styling.
Never mind. Got this to work by adding a parent wrapper div with width 100% and then targeting the outputted SVG with width 100% and height auto CSS styling.
Smart idea !
Quieres hacer la barra responsive, la opcion mas rapida y sin preocuparte por como queda es usar TableContainer de MaterialUI, te dejo en mi casi mi ejemplo que me quedo 100% responsive.
TableContainer
<Barcode
value={codigoBarras}
format="CODE39"
width={1}
height={30}
{...config}
/>
TableContainer
Saludos!!!
Hello, Is it possible to use % instead of px or maybe put a className for the width ?