Explicitly Adding LineBreaks to Spark Labels
Published in
1 min readNov 7, 2016
Just a quick one, primarily for my memory’s — or lack there of — benefit.
When trying to explicitly break some text across multiple lines, in Spark components that don’t natively use html text, such as Label, trying to break the line with \n never seems to work.
By wrapping it in parenthesis — {‘\n’} — we can achieve the desired result:
// results in ...
The quick brown fox
jumps over the lazy dog