It is important for me to spend time with my family.
You could also say: It is important to spend time with my family.
If you say "It is important..." then the next part would be the infinitive.
E.g. It is important to eat a healthy breakfast.
It is important to exercise regularly.
It is important to wash your hands.