Not sure if it’s hereditary or not but I know that intuition can run strong amongst some family members… not sure if that’s a learnt experience or genetics though.
I think there are many different schools of thought about this. To me, it’s hereditary only in the sense that we are all human and we all share this gift. So it is hereditary in the chain of our species, and probably all species alike.