Proof (Banach space as direct sum)
$Y,Z$ are closed $\implies$ $X = Y\oplus Z$
$Y$ and $Z$ are closed in a complete space $X$ so they are complete. Then $$ \begin{align*} T: Y \oplus Z &\to X \\ (y,z) &\mapsto y+z \end{align*} $$ is a linear bijection and is bounded as $$\|y + z\|\leq \|y\| + \|z\| \leq \|(y,z)\|.$$ Therefore by the inversion theorem, $T$ is an isomorphism.
$X = Y \oplus Z$ $\implies$ $P_Y$ is continuous
Hypothesis says $T\inv$ is bounded, so $$\|P_Y(y + z)\| = \|y\| \leq \|(y,z)\| \leq \|T\inv(y + z)\| \leq \|T\inv\| \|y + z\|.$$ Therefore $P_Y$ is continuous.
$P_Y$ is continuous $\implies$ $Y,Z$ are closed
$Z = \ker P_Y = P_Y\inv(0)$ is the closed preimage of a continuous function, so is closed. Similarly $P_Z = \id_X - P_Y$ is continuous, so $Y = \ker P_Z$ is also closed.