In the second box I tried to imitate the layout of the first box but with the title down. Obviously, the result is not correct. In fact, the result that I foresee is in the third box; but I do not know how to implement it using the tcolorbox
features.
\documentclass{beamer}
\usepackage{lmodern}
\usepackage{tikz}
\usepackage[most]{tcolorbox}
\tcbuselibrary{skins}
\usetikzlibrary{patterns}
\usetikzlibrary{decorations.shapes}
\usetikzlibrary{decorations.pathmorphing}
\tcbset{%
myboxmainstyle/.style={%
enhanced,
segmentation style={solid,line width=1pt,decorate,decoration={zigzag}},
center title,
halign=flush center,
boxrule=1pt,
arc is angular, arc=3pt,
}
}
\newtcolorbox{mybox}[2][]{%
adjusted title={#2},
myboxmainstyle,
#1,
}
\usepackage{environ}
\newcommand\myrotateboxgrap[1]{\reflectbox{\rotatebox[origin=c]{180}{#1}}}
\newcommand\myrotateboxtikz[1]{\tikz[baseline=(box.north)]\node[yscale=-1,inner sep=0,outer sep=0](box){#1};}
\NewEnviron{myboxflipped}[2][]{%
%\myrotateboxgrap{\begin{mybox}[#1]{\myrotateboxgrap{#2}}\myrotateboxgrap{\BODY}\end{mybox}}
\myrotateboxtikz{\begin{mybox}[#1]{\myrotateboxtikz{#2}}\myrotateboxtikz{\BODY}\end{mybox}}
}
\begin{document}
\begin{frame}
\begin{mybox}[]{Test}
bla bla
\end{mybox}
\begin{mybox}[attach boxed title to bottom center={yshift=0.25mm+\tcboxedtitleheight/2,yshifttext=-2mm+\tcboxedtitleheight/2}]{Test}
bla bla
\end{mybox}
\begin{myboxflipped}[colback=pink]{Test}
bla bla
\end{myboxflipped}
\end{frame}
\end{document}
\NewEnviron
stuff commands really necessary?