I want to have a line break in the text that I write inside a tikz table(example here A minimalist block in latex beamer). The latex code I have is:
\documentclass[10pt]{beamer}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{marvosym}
\usepackage{tcolorbox}
\usepackage{tikz}
\newcommand{\minimalisticBoxred}[2]{
\begin{figure}
\centering
\begin{tikzpicture}
\node(example-align)[red,rounded corners,draw,line width=1.5pt,inner sep=5ex](MBoxForm){#2};
\node[anchor=west,fill=white] at (MBoxForm.155) {#1};
\end{tikzpicture}
\end{figure}
}%\minimalisticBox{title}{contents}
\begin{document}
\begin{frame}
\minimalisticBoxred{Tikz}{Example of text with a line break \\ Want to have a \\ line break here}
\end{frame}
\end{document}
I followed few examples from this question's answers but it didn't work yet. What am I missing?

text widthargument. Is there any way to keep the text in the box in default text colour and only change the outline of the table to red? – tachyon May 27 '20 at 21:02red,rounded corners,drawusedraw=red,rounded cornersordraw=red,rounded corners,text=black. (However, I still think you should consider usingtcolorbox. Thetikzpictureis fine, but you can't put anothertikzpictureinside without nestingtikzpictures, and so on.) – May 27 '20 at 21:04tcolorboxis\begin{tcolorbox}[enhanced,attach boxed title to top left={xshift=5mm,yshift=-3mm,yshifttext=-1mm}, colback=white,colframe=red,colbacktitle=white,coltitle=black,title={Ti\emph{k}Z},halign=flush center,fonttitle=\bfseries, boxed title style={size=small,colframe=white}] Example of text with a line break \\ Want to have a \\ line break here \end{tcolorbox}– tachyon May 27 '20 at 21:20