LiOH is composed of a metal (Li) and a nonmetal (O and H) so there is a transfer of electrons from Li to O and H. That is why LiOH is an ionic compound.