I asked a question earlier but it looks like I misunderstood something Convert eigenvectors to different basis. I'm considering the case of a spin 1 object, where the eigenvalues of $S_z$ are 1,0,-1 so the $S_z$ diagonal basis is just {|1⟩,|0⟩,|−1⟩} and from this we can just write the $S_z$ operator as
$$S_z = \hbar \begin{bmatrix}1&0&0\\0&0&0\\0&0&-1\end{bmatrix}.$$
In most text, the discussion for the expression of the $S_x$ and $S_y$ states in terms of the $S_z$ basis is discussed only for a spin-$1/2$ system. How do I do this for spin-1?