question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New line in a Text element

See original GitHub issue

How can I force a new line within a Text element? Similar to <br/>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
diegomuracommented, Apr 4, 2021

@alew140 is the way. If you don’t like it that way you can create your own <br /> like

const Br = () => "\n";

<Text> text here up <Br /> Text here Down <Text>
0reactions
diegomuracommented, Apr 4, 2021

This should not be part of the lib code in my opinion. Will try to add it to the docs

Read more comments on GitHub >

github_iconTop Results From Across the Web

<br>: The Line Break element - HTML - MDN Web Docs - Mozilla
The HTML element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division...
Read more >
Line break in HTML with '\n' - Stack Overflow
The <br> HTML element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the...
Read more >
HTML New Line – How to Add a Line Break with the <br> Tag
Tip #1: Use <br> tags to create line breaks in text, instead of using multiple paragraphs or other elements. This can be simpler...
Read more >
Add a Line Break in HTML - Tutorial - TeachUcomp, Inc.
To add a line break to your HTML code, you use the <br> tag. The <br> tag does not have an end tag....
Read more >
How to Create a New Line in a P Tag of HTML - Computer Hope
Most programs and online forms support the Shift + Enter keyboard shortcut. To use this shortcut, move to the text cursor to where...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found