Open AlexSapoznikov opened 6 months ago
@AlexSapoznikov are you envisioning passing a style
prop to Barcode
, where that style is then passed through to the top level SVG component?
What's tricky about that is that fixed dimensions are user to generate the barcode. You can pass in some basic options if you look at the Options section in the README such as width and height. As such, it's tricky to make these barcode responsive as it'll have to recalculate the barcode one every resize.
You could perhaps try to play around with the options to see if that accomplishes what you need? Perhaps passing in a responsive value to height and/or width might work?
Currently I am unable to set for example max width to the generated svg element as I can not pass style to it. Please make it possible.