[Tex/LaTex] tcolorbox empty title but with frame

boxestcolorboxtitles

I want a box with the header frame for empty title. How can I do that? If I remove the title, the header frame will be removed automatically. I've tried to put an empty title so that I can keep the header frame but with no luck.

\begin{frame}[t]
    \frametitle{KKKKKKKK}
\begin{tcolorbox}[colback=green!5, colframe=green!30!black, title = {}]

\end{tcolorbox}
\end{frame}

Best Answer

\documentclass{beamer}
\usepackage{tcolorbox}
\begin{document}

\begin{frame}[t]
\frametitle{Test}
\begin{tcolorbox}[colback=green!5, colframe=green!30!black, title = {\strut}]
Test
\end{tcolorbox}
\end{frame}

\end{document}

enter image description here

Instead of \strut you could use an empty box: \mbox{}, or a phantom: \phantom{Ag}- Here's the result with an empty box:

\documentclass{beamer}
\usepackage{tcolorbox}
\begin{document}

\begin{frame}[t]
\frametitle{Test}
\begin{tcolorbox}[colback=green!5, colframe=green!30!black, title = {\mbox{}}]
Test
\end{tcolorbox}
\end{frame}

\end{document}

enter image description here

Related Question