[Tex/LaTex] LaTeX Beamer Block “Sandwich Style”

beamerboxes

How can I create a block in LaTeX Beamer in "Sandwich Style", i.e., that has both a title and a footer. Ideally, the background colors could even be different. Here is an illustration (with incorrect spacing):

Image that shows how it should (roughly) look like

Best Answer

With tcolorbox is easy to make a sandwich box. This one uses bicolor skin. There also exists a beamer skin which produces more 'a la beamer' boxes, but I don't know how to set a different background color for lower text part like bicolor does.

\documentclass{beamer}
\usepackage{tcolorbox}
\tcbuselibrary{skins}

\newtcolorbox{sandwich}[1]{bicolor, colframe=blue!75!black, colback=red!50!white, colbacklower=blue!75!black, collower=white,title=#1}

\begin{document}
\begin{frame}{Sandwich box with tcolorbox}

\begin{sandwich}{Testing 1-2-3}
This is a text
\tcblower
Yet another text
\end{sandwich}

\end{frame}
\end{document}

enter image description here