They are formed when hydrogen molecule reacts with highly electropositive s-block elements (Alkali Metals and Alkaline Earth Metals). For example : NaH, KH, CaH2 etc.
Covalent Hydrides (which have H bonded to non-metals through covalent bonds) are of three types on the basis of relative number of electrons and bonds in their Lewis structure :
(i) Electron-deficient hydride : Elements of group 13 will form electron-deficient hydrides. They act as Lewis acids, e.g., B2H6.
(ii) Electron-precise hydride : All elements of group 14 form electron-precise hydrides, e.g., CH4.
(iii) Electron-rich hydride : Elements of group 15-17 form such compounds. They act as Lewis bases, e.g., NH3.