0

Having this component:

import React from "react";
import { Popup } from "semantic-ui-react";

const MyComponent = () => {
  const value = "TEST";
  return (
    <Popup
      content={`This is the data: ${value}`}
      on="click"
      pinned
      trigger={<div>{value}</div>}
    />
  );
}

export default MyComponent;

I want to show the content data on multiple lines but is seems to not work.

Tried so far:

content={`This{"\n"}is the data: ${value}`}
content={`This \n is the data: ${value}`}

Any ideas?

Leo Messi
  • 5,157
  • 14
  • 63
  • 125

1 Answers1

-1

Seems like this is an old issue.

Answered here: https://github.com/Semantic-Org/Semantic-UI/issues/5575

Solved using html instead of content and <br /> as separator.