Line break \n not working in Javascript Blotter

206 Views Asked by At

I don't understand why the break \n doesn't work in the phrase "Explore \n more" of the Blotter code shown below. I would like the word "more" to go in a new line but nothing happens. Does anyone have a suggestion?

const blotterElems = [...document.querySelectorAll('[data-blotter]')];

blotterElems.forEach((el) => {
      const text = new Blotter.Text("EXPLORE \n MORE", {
        family: "'Butler'",
        size: 100,
        fill: "#fff",
        fontWeight: 400,
        paddingLeft: 100,
        paddingRight: 100,
      });
0

There are 0 best solutions below