Neither. Mauritius is a sovereign island nation in the Indian Ocean, ~2,000 km (1,200 mi) off southeast Africa and ~1,600 km northeast of Madagascar.
Geographically: Part of the Mascarene Islands (with Réunion, Rodrigues). Not on the African continental shelf nor the Indian subcontinent.
Historically & Culturally: Deep ties to both:
Mauritius is African by regional grouping (African Union member) but culturally a unique Indo-African-European-Chinese creole society.