Assuming you have a btn-group
defined in your HTML and you want to change the font size of its contents using CSS in JavaScript, you can do the following:
index.tsx126 chars3 lines
Here, we first select the btn-group
element using document.querySelector()
, and then we set its fontSize
property to the desired value, which is 16px
in this case.
You can adjust the value of fontSize
according to your needs.
gistlibby LogSnag